diff --git a/.github/workflows/auto-approve-for-auto-merge.yml b/.github/workflows/auto-approve-for-auto-merge.yml new file mode 100644 index 000000000000..dceb761134eb --- /dev/null +++ b/.github/workflows/auto-approve-for-auto-merge.yml @@ -0,0 +1,12 @@ +name: Auto approve + +on: pull_request + +jobs: + auto-approve: + runs-on: ubuntu-latest + permissions: + pull-requests: write + if: (github.event.pull_request.user.login == 'pulumi-bot') && (github.event.pull_request.head.repo.full_name == github.repository) && (contains(github.event.pull_request.labels.*.name, 'automation/merge')) + steps: + - uses: hmarr/auto-approve-action@v4