Skip to content

Commit 50c9f45

Browse files
committed
Rename master release to latest.
1 parent a98028a commit 50c9f45

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
MONGO_USERNAME: ${{ secrets.MONGO_USERNAME }}
3939
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
4040
SHORT_HASH: ${{ steps.var.outputs.sha_short }}
41-
run: bin/release-binary.sh "$MONGO_URL" "$MONGO_USERNAME" "$MONGO_PASSWORD" "$SHORT_HASH" "master"
41+
run: bin/release-binary.sh "$MONGO_URL" "$MONGO_USERNAME" "$MONGO_PASSWORD" "$SHORT_HASH" "latest"

bin/release-binary.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ fi
1616
if [[ "$PARAM_2" == 'stable' ]]; then
1717
FIELD="stableCliVersion"
1818
VERSION="$PARAM_1"
19-
else
19+
elif [[ "$PARAM_2" == 'latest' ]]; then
2020
FIELD="betaCliVersion"
21-
VERSION="master+$PARAM_1"
21+
VERSION="latest+$PARAM_1"
22+
else
23+
return 1
2224
fi
2325

2426
echo "Release: $FIELD as $VERSION"

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ ext.installContribDir = "${userHome}/.sdkman/contrib"
1313

1414
ext.environment = hasProperty('env') ? env : 'local'
1515
ext.hash = hasProperty('hash') ? hash : 'hashme'
16-
ext.release = hasProperty('release') ? release : 'master'
16+
ext.release = hasProperty('release') ? release : 'latest'
1717
ext.candidatesApi = ext.environment == 'production' ? 'https://api.sdkman.io/2' : 'http://localhost:8080/2'
1818

19-
ext.sdkmanVersion = ext.release == 'master' ? "master+${ext.hash}".toString() : ext.release
19+
ext.sdkmanVersion = ext.release == 'latest' ? "latest+${ext.hash}".toString() : ext.release
2020

2121
println("Environment is set to: $environment")
2222
println("Short git hash: $hash")

0 commit comments

Comments
 (0)