Skip to content

Commit

Permalink
read latest version for commit
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuchavva committed Oct 24, 2024
1 parent d9334aa commit 733cecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/semVer_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
fi
# Bumping version accordingly using a custom script or Gradle task
NEW_VERSION=$(./gradlew -q printVersion)
./gradlew bumpVersion -Ptype=$VERSION_TYPE
NEW_VERSION=$(./gradlew -q printVersion)
echo "::set-output name=new_version::$NEW_VERSION"
working-directory: ${{ env.WORKING_DIR }}

Expand Down
2 changes: 1 addition & 1 deletion jvm-spring-web/versioning.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ task bumpVersion {

def newVersion = currentVersion.join('.')
writeVersion(newVersion)
println "Version bumped to $newVersion"
println "Version bumped to $newVersion from $version"
}
}

0 comments on commit 733cecc

Please sign in to comment.