Enable auto-merge for dependabot

This commit is contained in:
Léo Colombaro 2021-09-15 01:31:21 +02:00
parent dcff1185bc
commit dd2ea4a9ca
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# https://help.github.com/actions
# https://docs.github.com/actions
name: Dependabot
name: Auto-merge
on: pull_request_target
@ -10,7 +10,7 @@ permissions:
jobs:
dependabot:
name: Auto-merge
name: Dependabot
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
@ -28,7 +28,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto "$PR_URL"
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,4 +1,4 @@
# https://help.github.com/actions
# https://docs.github.com/actions
name: Lint

View File

@ -1,4 +1,4 @@
# https://help.github.com/actions
# https://docs.github.com/actions
name: Server CI