Skip to content

Commit

Permalink
github: new attempt at auto-enabling merge of Dependabot PRs
Browse files Browse the repository at this point in the history
cli/cli#1314 is now marked fixed, so let's see if this works. This
rolls back commit 184280f8f801.
  • Loading branch information
martinvonz committed Dec 2, 2022
1 parent b80c39d commit ee7e7e1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: build

on:
pull_request:

permissions: read-all

jobs:
dependabot-auto-merge:
name: 'Dependabot auto-merge'
permissions:
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 ee7e7e1

Please sign in to comment.