We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aefc81 commit 7dc4fd1Copy full SHA for 7dc4fd1
1 file changed
.github/workflows/ci.yml
@@ -1,5 +1,7 @@
1
name: CI
2
-
+permissions:
3
+ contents: write
4
+ pull-requests: write
5
on:
6
push:
7
branches:
@@ -50,6 +52,18 @@ jobs:
50
52
github_token: ${{ secrets.GITHUB_TOKEN }}
51
53
publish_dir: .
54
55
+ dependabot:
56
+ name: 'Dependabot'
57
+ needs: build # After the E2E and build jobs, if one of them fails, it won't merge the PR.
58
+ runs-on: ubuntu-latest
59
+ if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} # Detect that the PR author is dependabot
60
+ steps:
61
+ - name: Enable auto-merge for Dependabot PRs
62
+ run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR
63
+ env:
64
+ PR_URL: ${{github.event.pull_request.html_url}}
65
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
66
+
67
npm-publish-build:
68
needs: build
69
runs-on: ubuntu-latest
0 commit comments