From 090fc808bbc902cde35aac3531373eea11e2602e Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Mon, 29 Nov 2021 17:22:53 +0000 Subject: [PATCH] Move workflow env sections into steps for PR workflow (#19926) --- .github/workflows/triage-move-review-requests.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/triage-move-review-requests.yml b/.github/workflows/triage-move-review-requests.yml index 657c07670e..f323d49b9e 100644 --- a/.github/workflows/triage-move-review-requests.yml +++ b/.github/workflows/triage-move-review-requests.yml @@ -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 @@ -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 @@ -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 }}