Skip to content

Commit

Permalink
update release.yaml to commit new version bump (#14)
Browse files Browse the repository at this point in the history
* update release.yaml to commit new version bump

---------

Co-authored-by: Gheorghe Soimu <[email protected]>
  • Loading branch information
soimugeoWB and soimugeo authored Jun 24, 2024
1 parent 210475f commit 684c35e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
version_parts[2]=$((version_parts[2] + 1))
new_base_version="${version_parts[0]}.${version_parts[1]}.${version_parts[2]}"
if [[ "$branch" == "master-who" ]]; then
if [[ "$branch" == "main-who" ]]; then
new_version="${new_base_version}-WHO"
else
new_version="$new_base_version"
Expand All @@ -63,6 +63,15 @@ jobs:
echo "New version: $new_version"
mvn versions:set -DnewVersion=$new_version -DgenerateBackupPoms=false
echo ":: set-output name=new_version::$new_version"
- name: Commit new version
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add pom.xml
git commit -m "Bump version to ${{ steps.bump.outputs.new_version }}"
git tag ${{ steps.bump.outputs.new_version }}
git push origin HEAD:${GITHUB_REF##*/}
git push origin ${{ steps.bump.outputs.new_version }}
- name: Build and Publish package
run: mvn --batch-mode -Prelease package dockerfile:push
- name: Release
Expand Down

0 comments on commit 684c35e

Please sign in to comment.