Skip to content

Commit 8b31ddf

Browse files
authored
ci: approve templates bump PR so auto-merge completes (3.x) (#18992)
Port of [#18990](#18990) to `3.x`. Adds auto-approve to this workflow, so once 'All Green' it will auto-merge.
1 parent a574750 commit 8b31ddf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/post-release-templates.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ jobs:
133133
environment: release
134134
permissions:
135135
contents: read
136+
pull-requests: write
136137
steps:
137138
- name: Mint App token
138139
id: app-token
@@ -186,6 +187,13 @@ jobs:
186187
187188
Triggered by user: @${{ github.actor }}
188189
190+
- name: Approve pull request
191+
if: steps.cpr.outputs.pull-request-number != ''
192+
env:
193+
GH_TOKEN: ${{ github.token }}
194+
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}
195+
run: gh pr review "$PR_NUMBER" --approve --repo "$GITHUB_REPOSITORY"
196+
189197
- name: Enable auto-merge
190198
if: steps.cpr.outputs.pull-request-number != ''
191199
env:

0 commit comments

Comments
 (0)