Skip to content

Dependabot auto-merge #298

Dependabot auto-merge

Dependabot auto-merge #298

name: Dependabot auto-merge
on:
workflow_run:
workflows: [CI]
types: [completed]
permissions:
pull-requests: write
contents: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' && github.actor == 'dependabot[bot]' }}
steps:
- name: Auto-merge dependabot pull request
run: gh pr merge --auto --squash "${PR_BRANCH}" --repo ${{ github.repository }}
env:
PR_BRANCH: ${{github.event.workflow_run.head_branch}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}