Auto approve PR from owner #246
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: Auto approve PR from owner | |
| on: | |
| workflow_run: | |
| workflows: | |
| - CI-common | |
| - CI-common-mobx | |
| - CI-common-firebase | |
| - CI-common-web | |
| types: | |
| - completed | |
| branches-ignore: | |
| - main | |
| jobs: | |
| auto-approve: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| # Only run if the PR is opened by the owner and only after successful check run | |
| if: github.event.workflow_run.conclusion == 'success' && github.actor == 'idudinov' | |
| env: | |
| PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }} | |
| steps: | |
| - uses: hmarr/auto-approve-action@v3 | |
| with: | |
| pull-request-number: ${{ env.PR_NUMBER }} |