File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PR auto-merge
2
+ on : pull_request
3
+
4
+ permissions :
5
+ contents : write
6
+ pull-requests : write
7
+
8
+ jobs :
9
+ dependabot :
10
+ runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : write
13
+ pull-requests : write
14
+ if : github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'yoanm/symfony-jsonrpc-http-server-swagger-doc'
15
+ steps :
16
+ - name : Dependabot metadata
17
+ id : metadata
18
+ uses : dependabot/fetch-metadata@v2.4.0
19
+ with :
20
+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
21
+
22
+ - name : Add custom labels
23
+ run : gh pr edit "${{github.event.pull_request.html_url}}" --add-label "with-nightly-tests"
24
+ env :
25
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
26
+
27
+ - name : Enable auto-merge for Dependabot PRs
28
+ if : ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
29
+ run : gh pr merge --auto --squash "$PR_URL"
30
+ env :
31
+ PR_URL : ${{github.event.pull_request.html_url}}
32
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments