jj/.github/workflows/dependabot.yml
Austin Seipp fe9ea505b6 github: add merge_group event to several workflows
These are the workflows that run on PRs, so they need to have the `merge_group`
event added to them if we want to use the merge queue.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2025-01-07 21:26:57 -06:00

26 lines
660 B
YAML

name: Enable auto-merge for Dependabot PRs
on:
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
dependabot-auto-merge:
name: 'Dependabot auto-merge'
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-24.04
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}