ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/.github/workflows/dependabot.yml
Martin von Zweigbergk b707a29f41 github: fix name of workflow for Dependabot auto-merge
I apparently forgot to update the name when I copied `build.yml`.
2023-03-30 19:29:18 -07:00

21 lines
519 B
YAML

name: Enable auto-merge for Dependabot PRs
on:
pull_request:
permissions: read-all
jobs:
dependabot-auto-merge:
name: 'Dependabot auto-merge'
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
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}}