mirror of https://github.com/vector-im/riot-web
Move workflow env sections into steps for PR workflow (#19926)
parent
10e121a514
commit
090fc808bb
|
@ -2,10 +2,6 @@ name: Move pull requests asking for review to the relevant project
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [review_requested]
|
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:
|
jobs:
|
||||||
add_design_pr_to_project:
|
add_design_pr_to_project:
|
||||||
name: Move PRs asking for design review to the design board
|
name: Move PRs asking for design review to the design board
|
||||||
|
@ -28,6 +24,9 @@ jobs:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
team: ${{ env.TEAM }}
|
team: ${{ env.TEAM }}
|
||||||
|
env:
|
||||||
|
TEAM: "design"
|
||||||
|
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
||||||
- id: any_reviewers_in_the_team
|
- id: any_reviewers_in_the_team
|
||||||
run: |
|
run: |
|
||||||
echo '${{ tojson(fromjson(steps.find_team_members.outputs.data).organization.team.members.nodes[*].login) }}' | tee /tmp/team_members.json
|
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 }}
|
projectid: ${{ env.PROJECT_ID }}
|
||||||
contentid: ${{ github.event.pull_request.node_id }}
|
contentid: ${{ github.event.pull_request.node_id }}
|
||||||
|
env:
|
||||||
|
PROJECT_ID: "PN_kwDOAM0swc0sUA"
|
||||||
|
TEAM: "design"
|
||||||
|
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
||||||
|
|
Loading…
Reference in New Issue