This repository was archived by the owner on May 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Dependabot auto-merge
2+ on :
3+ pull_request
4+
5+ permissions :
6+ contents : write
7+ pull-requests : write
8+
9+ jobs :
10+ wait_for_checks :
11+ runs-on : ubuntu-latest
12+ if : ${{ github.actor == 'dependabot[bot]' }}
13+ steps :
14+ - name : Wait for check is finished
15+ uses : lewagon/wait-on-check-action@v1.2.0
16+ id : wait_for_checks
17+ with :
18+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
19+ running-workflow-name : wait_for_checks
20+ check-regexp : Tests
21+ repo-token : ${{ secrets.PR_TOKEN }}
22+ wait-interval : 10
23+ dependabot :
24+ needs : [wait_for_checks]
25+ name : Dependabot auto-merge
26+ runs-on : ubuntu-latest
27+ if : ${{ github.actor == 'dependabot[bot]' }}
28+ steps :
29+ - name : Dependabot metadata
30+ id : metadata
31+ uses : dependabot/fetch-metadata@v1.3.5
32+ with :
33+ github-token : " ${{ secrets.PR_TOKEN }}"
34+ - name : Enable auto-merge for Dependabot PRs
35+ if : ${{steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
36+ run : |
37+ gh pr review --approve "$PR_URL"
38+ gh pr merge --auto --merge "$PR_URL"
39+ env :
40+ PR_URL : ${{github.event.pull_request.html_url}}
41+ GITHUB_TOKEN : ${{secrets.PR_TOKEN}}
You can’t perform that action at this time.
0 commit comments