File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Auto approve and merge PRs by dependabot
2+
3+ on :
4+ pull_request
5+
6+ jobs :
7+ autoapprove :
8+ name : Auto Approve a PR by dependabot
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Auto approve
12+ 13+ if : github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
14+ with :
15+ github-token : ${{ secrets.GITHUB_TOKEN }}
16+ automerge :
17+ name : Auto merge after successful checks
18+ needs : autoapprove
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Auto merge
22+ uses : pascalgn/automerge-action@135f0bdb927d9807b5446f7ca9ecc2c51de03c4a
23+ if : github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+ MERGE_LABELS : dependencies
27+ MERGE_METHOD : rebase
You can’t perform that action at this time.
0 commit comments