Skip to content

Commit d648a27

Browse files
authored
Merge pull request #43 from gethinode/develop
ci: refine auto-merge
2 parents 47b48cf + 4429bca commit d648a27

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/auto-merge.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Source: https://nicolasiensen.github.io/2022-07-23-automating-dependency-updates-with-dependabot-github-auto-merge-and-github-actions/
2-
name: Dependabot auto-merge
2+
name: PR auto-merge
33
on: pull_request_target
44

55
permissions:
@@ -38,3 +38,13 @@ jobs:
3838
env:
3939
PR_URL: ${{github.event.pull_request.html_url}}
4040
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
41+
42+
review-mod-update-pr:
43+
runs-on: ubuntu-latest
44+
if: ${{ github.event.pull_request.title == 'Update Hugo module dependencies' }}
45+
steps:
46+
- name: Enable auto-merge for mod-update PRs
47+
run: gh pr merge --auto --merge "$PR_URL"
48+
env:
49+
PR_URL: ${{github.event.pull_request.html_url}}
50+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)