Skip to content

Commit 5ed12bc

Browse files
authored
Reland "Enable auto-merge for bot-created PRs" (#22956)
It still needs a human to approve, but now there's one less button to press.
1 parent fe26f3f commit 5ed12bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/tag-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,17 @@ jobs:
1818
- name: Update Changelog
1919
run: python3 tools/maint/create_release.py --action
2020
- name: Create Changelog PR
21+
id: cpr
2122
uses: peter-evans/create-pull-request@v6
2223
with:
2324
token: ${{ secrets.EMSCRIPTEN_BOT_TOKEN }}
2425
title: Mark ${{ env.RELEASE_VERSION }} as released
2526
team-reviewers: release-reviewers
2627
delete-branch: true
28+
- name: Enable auto-merge
29+
run: gh pr merge --squash --auto "${{ steps.cpr.outputs.pull-request-number }}"
30+
env:
31+
GH_TOKEN: ${{ secrets.EMSCRIPTEN_BOT_TOKEN }}
2732
- name: Tag release sha
2833
uses: actions/github-script@v7
2934
with:

0 commit comments

Comments
 (0)