Skip to content

Auto approve PR from owner #262

Auto approve PR from owner

Auto approve PR from owner #262

Workflow file for this run

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 }}