Skip to content

Commit

Permalink
Move workflow env sections into steps for PR workflow (#19926)
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam authored Nov 29, 2021
1 parent 10e121a commit 090fc80
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/triage-move-review-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Move pull requests asking for review to the relevant project
on:
pull_request:
types: [review_requested]
env:
PROJECT_ID: "PN_kwDOAM0swc0sUA" # ID of the project
TEAM: "design" # The team of reviewers
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
jobs:
add_design_pr_to_project:
name: Move PRs asking for design review to the design board
Expand All @@ -28,6 +24,9 @@ jobs:
}
}
team: ${{ env.TEAM }}
env:
TEAM: "design"
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
- id: any_reviewers_in_the_team
run: |
echo '${{ tojson(fromjson(steps.find_team_members.outputs.data).organization.team.members.nodes[*].login) }}' | tee /tmp/team_members.json
Expand Down Expand Up @@ -56,3 +55,7 @@ jobs:
}
projectid: ${{ env.PROJECT_ID }}
contentid: ${{ github.event.pull_request.node_id }}
env:
PROJECT_ID: "PN_kwDOAM0swc0sUA"
TEAM: "design"
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}

0 comments on commit 090fc80

Please sign in to comment.