Skip to content
/ cas Public

Commit 721eafc

Browse files
committed
fix: release pipeline should examine input value [skip ci]
1 parent 721aae3 commit 721eafc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ jobs:
4141
- name: Determine version
4242
id: check
4343
run: |
44-
casVersion=(`cat ./gradle.properties | grep "version" | cut -d= -f2`)
45-
echo "Detected version: $casVersion"
46-
47-
# decide if it’s a SNAPSHOT
48-
if [[ "$casVersion" == *-SNAPSHOT ]]; then
44+
RELEASE_VERSION="${{ inputs.releaseVersion }}"
45+
echo "Detected release version: $RELEASE_VERSION"
46+
if [[ "$RELEASE_VERSION" == *-SNAPSHOT ]]; then
4947
echo "is_snapshot=true"
5048
else
5149
echo "is_snapshot=false"

0 commit comments

Comments
 (0)