Automatically merge Dependabot PRs when CI passes (#3894)

This commit is contained in:
Jon Koops 2022-11-30 17:46:34 +01:00 committed by GitHub
parent 7eb77cc0a7
commit 00117da02b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,3 +78,13 @@ jobs:
- name: Run ${{ matrix.command }} task
run: npm run ${{ matrix.command }} --workspace=${{ matrix.workspace }}
dependabot:
needs: [run]
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}