Skip to content

Commit d731187

Browse files
committed
Added auto-merge for Dependabot updates
1 parent 7d111e4 commit d731187

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,16 @@ jobs:
1818
- run: npm run build
1919
env:
2020
CI: true
21+
22+
dependabot:
23+
permissions:
24+
contents: write
25+
pull-requests: read
26+
runs-on: ubuntu-latest
27+
needs: [npm-run-build]
28+
if: ${{ github.actor == 'dependabot[bot]' }}
29+
steps:
30+
- run: 'gh pr merge --auto --rebase "$PULL_REQUEST"'
31+
env:
32+
PULL_REQUEST: ${{ github.event.pull_request.html_url }}
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)