Skip to content

Commit

Permalink
GitHub Actions is incomprehensible.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-wong-dfinity-org committed Jan 6, 2025
1 parent 7ee3528 commit 50f67ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/governance_pull_request_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ jobs:
id: isAuthorInNnsTeam
with:
github-token: ${{ secrets.CLA_BOT_PRIVATE_KEY }}
result-encoding: string
retries: 3
script: |
return 'true';
/* DO NOT MERGE
const pullRequestNumber = context.payload.number;
console.log("Calling listMembersInOrg...")
const nnsTeamMembers = await await github.rest.teams.listMembersInOrg({
Expand All @@ -30,12 +28,14 @@ jobs:
console.log("nnsTeamMemebrs = " + JSON.stringify(nnsTeamMembers));
const isInNnsTeam = nnsTeamMembers.data.some(member => member.login == context.actor);
*/
const isInNnsTeam = true;
console.log("Is actor in nns-team? " + isInNNsTeam);
return isInNnsTeam
return isInNnsTeam;
- name: Remind the Author to Update unreleased_changes.md.
uses: actions/github-script@v6
if: steps.isAuthorInNnsTeam == 'true'
if: steps.isAuthorInNnsTeam.outputs.isInNnsTeam == 'true'
id: remindAuthorToUpdateUnreleasedChangelog
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 50f67ad

Please sign in to comment.