Auto Merge (The Bouncer) #6
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 Merge (The Bouncer) | |
| on: | |
| workflow_run: | |
| workflows: ["CI Orchestrator"] | |
| types: | |
| - completed | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| jobs: | |
| auto-merge: | |
| runs-on: ubuntu-latest | |
| if: > | |
| ${{ github.event.workflow_run.conclusion == 'success' }} && | |
| (github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]' || github.actor == 'fseitz') | |
| steps: | |
| - name: Enable Auto Merge | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| # Find the PR associated with this branch/commit | |
| # tailored logic needed here to match workflow_run to PR | |
| echo "Checking criteria for auto-merge..." | |
| # gh pr merge --auto --merge "$PR_URL" |