Skip to content

Commit

Permalink
github: new attempt at Dependabot auto-merge
Browse files Browse the repository at this point in the history
This is an updated version of the workflow deleted in f5fc3c3,
trying the advice from
cli/cli#6695 (comment).
  • Loading branch information
martinvonz committed Dec 13, 2022
1 parent 6237f3c commit b87c1cb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build

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}}

0 comments on commit b87c1cb

Please sign in to comment.