Skip to content

automerge

automerge #411

Workflow file for this run

---
name: automerge
on:
workflow_run:
types:
- completed
workflows:
- "ci"
jobs:
print-debug-info:
name: Print debug info
runs-on: ubuntu-latest
steps:
- uses: hmarr/debug-action@v2
check-mergeability:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: NikitaSkrynnik/.github/.github/workflows/check-mergeability.yaml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
automerge:
needs: [check-mergeability]
if: ${{ needs.check-mergeability.outputs.pr_branch_ref != '' }}
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: merge
run: gh pr merge ${{ github.event.workflow_run.head_branch }} --squash --delete-branch
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}