Skip to content

Commit 3c176c8

Browse files
authored
Update release.yml
1 parent 725688f commit 3c176c8

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,23 @@ jobs:
5050
git config user.name "github-actions[bot]"
5151
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
5252
make bumpversion-candidate
53-
make git-push
53+
54+
- name: Create pull request
55+
id: cpr
56+
uses: peter-evans/create-pull-request@v4
57+
with:
58+
token: ${{ secrets.GH_ACCESS_TOKEN }}
59+
commit-message: bumpversion-candidate
60+
title: Automated Bump Version Candidate
61+
body: "This is an auto-generated PR that bumps the version to the next candidate."
62+
branch: bumpversion-candidate-update
63+
branch-suffix: short-commit-hash
64+
base: main
65+
66+
- name: Enable Pull Request Automerge
67+
if: steps.cpr.outputs.pull-request-operation == 'created'
68+
uses: peter-evans/enable-pull-request-automerge@v3
69+
with:
70+
token: ${{ secrets.GH_ACCESS_TOKEN }}
71+
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
72+
merge-method: squash

0 commit comments

Comments
 (0)