Skip to content

Commit 61f88a8

Browse files
authored
Workflow/tag release update (#452)
* Fix pom version update, reorder the tag and changelog steps, and add step creating second PR for the version bump. * Added check for existence of remote branch for bump PR. Create if necessary. * Updated regex to allow \. in release version suffix. * Changed branch name for bump PR, removing short hash code. * Ensure ALL branches are fetched, including nested ones. * Remove --base flag from git command to correct problem with first changelog creation. * Fix second PR generation. * Ensure remote branch is created for second PR commit.
1 parent ee7a4ad commit 61f88a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/tag-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ jobs:
8585
git add ./pom.xml
8686
git commit -m "chore(release): Bump version to ${{ github.event.inputs.new_revision }} for continued development"
8787
88+
- name: Push the new version branch # Ensure remote state matches local commit
89+
run: |
90+
git push --force-with-lease --set-upstream origin "release/bump-version-to-${{ github.event.inputs.new_revision }}"
91+
8892
- name: Create pull request for version bump
8993
uses: peter-evans/create-pull-request@v7
9094
env:

0 commit comments

Comments
 (0)