We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ca8ce9 commit 298acb4Copy full SHA for 298acb4
1 file changed
.github/actions/spring-artifactory-gradle-build/action.yml
@@ -54,6 +54,10 @@ runs:
54
with:
55
java-version: 24
56
57
+ - name: Compute Version
58
+ id: compute-version
59
+ uses: spring-io/spring-release-actions/compute-version@0.0.3
60
+
61
- name: Set Release Version
62
if: inputs.releaseVersion
63
shell: bash
@@ -85,7 +89,7 @@ runs:
85
89
branchVersion=${{ github.ref_name }}
86
90
87
91
if [ $branchVersion = 'main' ]; then
88
- snapshotVersion=$(cat gradle.properties | sed -n '/^version=/ { s/^version=//;p }')
92
+ snapshotVersion=${{ steps.compute-version.outputs.version }}
93
branchVersion=${snapshotVersion%.*}.x
94
fi
95
0 commit comments