diff --git a/.github/workflows/auto-merge-bot-prs.yml b/.github/workflows/auto-merge-bot-prs.yml new file mode 100644 index 0000000..eaf9523 --- /dev/null +++ b/.github/workflows/auto-merge-bot-prs.yml @@ -0,0 +1,19 @@ +name: Auto-merge bot PRs + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + auto-merge: + if: github.actor == 'dev-portal-updater-protected[bot]' + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Enable auto-merge + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }} + run: gh pr merge --auto --merge "$PR_URL"