Skip to content

bot-auto-merge

bot-auto-merge #1617

---
name: bot-auto-merge
on:
workflow_run:
types: [completed]
workflows: ["tox-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"