Skip to content

Commit d6792ff

Browse files
committed
Enable auto-merge for regional information PRs
This workflow now automatically enables auto-merge for pull requests created by the regional information update job. When all required CI checks pass, the PR will merge automatically using rebase strategy.
1 parent 61e02b2 commit d6792ff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/update-regionals.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
schedule:
66
- cron: '0 0 * * *'
77

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
812
jobs:
913
update-regional-information:
1014
name: Update Regional Information
@@ -33,6 +37,7 @@ jobs:
3337
run: bin/update-domain-suffixes
3438

3539
- name: Create pull request
40+
id: cpr
3641
uses: peter-evans/create-pull-request@v8
3742
with:
3843
committer: The Respect Panda <[email protected]>
@@ -41,3 +46,10 @@ jobs:
4146
title: Update Regional Information
4247
base: ${{ secrets.LAST_MINOR_VERSION }}
4348
branch: "workflows/update-regional-information"
49+
50+
- name: Enable auto-merge for PR
51+
if: steps.cpr.outputs.pull-request-number
52+
uses: peter-evans/enable-pull-request-automerge@v3
53+
with:
54+
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
55+
merge-method: rebase

0 commit comments

Comments
 (0)