Skip to content

Commit 298acb4

Browse files
committed
Use compute-version in spring-artifactory-gradle-build
Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
1 parent 7ca8ce9 commit 298acb4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • .github/actions/spring-artifactory-gradle-build

.github/actions/spring-artifactory-gradle-build/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ runs:
5454
with:
5555
java-version: 24
5656

57+
- name: Compute Version
58+
id: compute-version
59+
uses: spring-io/spring-release-actions/compute-version@0.0.3
60+
5761
- name: Set Release Version
5862
if: inputs.releaseVersion
5963
shell: bash
@@ -85,7 +89,7 @@ runs:
8589
branchVersion=${{ github.ref_name }}
8690
8791
if [ $branchVersion = 'main' ]; then
88-
snapshotVersion=$(cat gradle.properties | sed -n '/^version=/ { s/^version=//;p }')
92+
snapshotVersion=${{ steps.compute-version.outputs.version }}
8993
branchVersion=${snapshotVersion%.*}.x
9094
fi
9195

0 commit comments

Comments
 (0)