Automatically merge Dependabot PRs when CI passes (#3894)
This commit is contained in:
parent
7eb77cc0a7
commit
00117da02b
1 changed files with 11 additions and 1 deletions
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue