Skip to content

Commit a0311a2

Browse files
committed
use peter-evans/create-pull-request action
1 parent c4bcb65 commit a0311a2

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/create_release_branch.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,15 @@ jobs:
8080
jq --arg version "${{ github.event.inputs.version }}" '.mongodbOperator=$version' release.json > tmp_release.json
8181
mv tmp_release.json release.json
8282
git add release.json
83-
git commit -S -m "Update release.json with version ${{ github.event.inputs.version }}"
84-
git push origin ${{ github.event.inputs.branch_name }}
85-
env:
86-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
83+
84+
- name: Create Pull Request
85+
uses: peter-evans/create-pull-request@v7
86+
with:
87+
token: ${{ steps.app-token.outputs.token }}
88+
sign-commits: true
89+
commit-message: Release version `${{ github.event.inputs.version }}`
90+
title: Release version `${{ github.event.inputs.version }}`
91+
signoff: false
92+
delete-branch: false
93+
branch: bump-${{ github.event.inputs.version }}-version
94+
draft: true

0 commit comments

Comments
 (0)