Skip to content

Commit

Permalink
added commit action to release.yaml (#17)
Browse files Browse the repository at this point in the history
Co-authored-by: Gheorghe Soimu <[email protected]>
  • Loading branch information
soimugeoWB and soimugeo authored Jun 21, 2024
1 parent a652ab2 commit 9f30ddd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,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 with Maven
run: mvn --batch-mode -Prelease deploy
- name: Release
Expand Down

0 comments on commit 9f30ddd

Please sign in to comment.