Skip to content

Commit 8b32a76

Browse files
authored
chore(skip-release): Update release.yml
Signed-off-by: Stephane Bouchet <[email protected]>
1 parent adacdb6 commit 8b32a76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: .github/workflows/release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ jobs:
9090
NEW_VERSION="${VERSION_NUM[0]}.${VERSION_NUM[1]}.${VERSION_NUM[2]}-SNAPSHOT"
9191
awk -v new_version="$NEW_VERSION" '/projectVersion=/{sub(/=.*/, "=" new_version)}1' gradle.properties > tmpfile && mv tmpfile gradle.properties
9292
echo "Set $NEW_VERSION in gradle.properties"
93+
git checkout -b $NEW_VERSION
9394
git commit -sam "chore(skip-release): set version to $NEW_VERSION"
94-
gh pr create -B main --title 'chore(skip-release): set version to $NEW_VERSION' --body 'Created by Github action'
95+
git push -u origin $NEW_VERSION
96+
gh pr create -B main -H $NEW_VERSION --title 'chore(skip-release): set version to $NEW_VERSION' --body 'Created by Github action'
9597
9698
- name: Simple conventional changelog
9799
uses: lstocchi/simple-conventional-changelog@13071c09073f5deddf03d44d9af6a8b0f81ef227 #0.0.11

0 commit comments

Comments
 (0)