mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 18:11:03 +00:00
d29c3636fa
It seems that `review-trigger` is not uploading the artifact that is used by `review-bot`, so I changed the PR-Number to be obtained by the previous event that triggered this action. I also took the liberty to replace `tibdex/github-app-token` for `actions/create-github-app-token` which is GitHub's official app.
29 lines
874 B
YAML
29 lines
874 B
YAML
name: Review Bot
|
|
on:
|
|
workflow_run:
|
|
workflows:
|
|
- Review-Trigger
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
review-approvals:
|
|
runs-on: ubuntu-latest
|
|
environment: master
|
|
steps:
|
|
- name: Generate token
|
|
id: app_token
|
|
uses: actions/create-github-app-token@v1.9.3
|
|
with:
|
|
app-id: ${{ secrets.REVIEW_APP_ID }}
|
|
private-key: ${{ secrets.REVIEW_APP_KEY }}
|
|
- name: "Evaluates PR reviews and assigns reviewers"
|
|
uses: paritytech/review-bot@v2.4.0
|
|
with:
|
|
repo-token: ${{ steps.app_token.outputs.token }}
|
|
team-token: ${{ steps.app_token.outputs.token }}
|
|
checks-token: ${{ steps.app_token.outputs.token }}
|
|
# This is extracted from the triggering event
|
|
pr-number: ${{ github.event.workflow_run.pull_requests[0].number }}
|
|
request-reviewers: true
|