mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-06 11:34:54 +00:00
a45eb0b0d5
This will make sure the build on the main listing still looks clean, instead of previous builds being cancelled and making it look like things failed. Signed-off-by: Austin Seipp <aseipp@pobox.com>
26 lines
694 B
YAML
26 lines
694 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: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
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}}
|