Dependabot Auto-merge #882
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: Dependabot Auto-merge | |
| # NOTE: `merge-me-action` still needs the bot PAT here. | |
| # Using `secrets.GITHUB_TOKEN` fails on `workflow_run` with | |
| # "Resource not accessible by integration" when the action queries | |
| # branch protection rules over GraphQL. | |
| # See: https://github.com/ridedott/merge-me-action/issues/1581 | |
| on: | |
| workflow_run: | |
| types: | |
| - completed | |
| workflows: | |
| # List all required workflow names here. | |
| - Build | |
| jobs: | |
| auto_merge: | |
| name: Auto-merge | |
| runs-on: ubuntu-latest | |
| if: >- | |
| github.event.workflow_run.conclusion == 'success' && | |
| github.event.workflow_run.event == 'pull_request' && | |
| github.actor == 'dependabot[bot]' | |
| steps: | |
| - uses: ridedott/merge-me-action@2568f177a681785a874d6e7af950eb1a0dd31123 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.AWBOT_GH_TOKEN }} |