This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
Review Bot #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Review Bot | |
on: | |
workflow_run: | |
workflows: | |
- Review-Trigger | |
types: | |
- completed | |
jobs: | |
review-approvals: | |
runs-on: ubuntu-latest | |
environment: master | |
steps: | |
- name: Extract content of artifact | |
id: number | |
uses: Bullrich/[email protected] | |
with: | |
artifact-name: pr_number | |
- name: Generate token | |
id: app_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.REVIEW_APP_ID }} | |
private_key: ${{ secrets.REVIEW_APP_KEY }} | |
- name: "Evaluates PR reviews and assigns reviewers" | |
uses: paritytech/[email protected] | |
with: | |
repo-token: ${{ steps.app_token.outputs.token }} | |
team-token: ${{ steps.app_token.outputs.token }} | |
checks-token: ${{ steps.app_token.outputs.token }} | |
pr-number: ${{ steps.number.outputs.content }} | |
request-reviewers: true |