bot-auto-merge #9675
This file contains 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: bot-auto-merge | |
on: | |
workflow_run: | |
types: [completed] | |
workflows: ["pytest"] | |
jobs: | |
bot-auto-merge: | |
name: Auto-merge passing bot PRs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Impersonate auto merge PR bot | |
uses: tibdex/github-app-token@v2 | |
id: generate-token | |
with: | |
app_id: ${{ secrets.BOT_AUTO_MERGE_PRS_APP_ID }} | |
private_key: ${{ secrets.BOT_AUTO_MERGE_PRS_APP_KEY }} | |
- name: Auto-merge passing dependabot PRs | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
uses: ridedott/merge-me-action@v2 | |
with: | |
# For clarity only. dependabot is default login. | |
GITHUB_LOGIN: dependabot | |
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} | |
ENABLED_FOR_MANUAL_CHANGES: "true" | |
- name: Auto-merge passing pre-commit-ci PRs | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
uses: ridedott/merge-me-action@v2 | |
with: | |
GITHUB_LOGIN: pre-commit-ci | |
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} | |
ENABLED_FOR_MANUAL_CHANGES: "true" |