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
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
@ -48,7 +48,7 @@ jobs:
|
||||||
- workspace: admin-ui
|
- workspace: admin-ui
|
||||||
command: build
|
command: build
|
||||||
- workspace: admin-ui
|
- workspace: admin-ui
|
||||||
# Account UI
|
# Account UI
|
||||||
command: cy:check-types
|
command: cy:check-types
|
||||||
- workspace: account-ui
|
- workspace: account-ui
|
||||||
command: lint
|
command: lint
|
||||||
|
@ -78,3 +78,13 @@ jobs:
|
||||||
|
|
||||||
- name: Run ${{ matrix.command }} task
|
- name: Run ${{ matrix.command }} task
|
||||||
run: npm run ${{ matrix.command }} --workspace=${{ matrix.workspace }}
|
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