Enable auto-merge for dependabot
This commit is contained in:
parent
6eddf7307e
commit
3501007ed6
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
# https://docs.github.com/actions
|
# https://docs.github.com/actions
|
||||||
|
|
||||||
name: Dependabot
|
name: Auto-merge
|
||||||
|
|
||||||
on: pull_request_target
|
on: pull_request_target
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dependabot:
|
dependabot:
|
||||||
name: Auto-merge
|
name: Dependabot
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -28,7 +28,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Enable auto-merge for Dependabot PRs
|
- name: Enable auto-merge for Dependabot PRs
|
||||||
run: gh pr merge --auto "$PR_URL"
|
run: gh pr merge --auto --rebase "$PR_URL"
|
||||||
env:
|
env:
|
||||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in a new issue