Review Bot #14820
This file contains hidden or 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 | |
| permissions: | |
| contents: read | |
| jobs: | |
| review-approvals: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Extract content of artifact | |
| id: number | |
| uses: Bullrich/extract-text-from-artifact@v1.0.1 | |
| with: | |
| artifact-name: pr_number | |
| - name: Generate token | |
| id: team_token | |
| uses: actions/create-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/review-bot@v2.7.1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| team-token: ${{ steps.team_token.outputs.token }} | |
| checks-token: ${{ steps.team_token.outputs.token }} | |
| pr-number: ${{ steps.number.outputs.content }} |