mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-07 21:27:06 +00:00
252f6d8543
This gets rid of an annoying warning in the Actions tab, but we already rely on this for the build-binaries workflow, and it's probably better to be explicit about this anyway. Signed-off-by: Austin Seipp <aseipp@pobox.com>
25 lines
645 B
YAML
25 lines
645 B
YAML
name: Enable auto-merge for Dependabot PRs
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
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}}
|