mirror of
https://github.com/VSCodium/vscodium
synced 2024-10-02 09:03:31 +00:00
fix: retrieve BUILD_SOURCEVERSION when force update versions [skip ci]
This commit is contained in:
parent
30fea6fcbd
commit
e82cd45830
|
@ -12,6 +12,15 @@ if [[ -z "${GITHUB_TOKEN}" ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${FORCE_UPDATE}" == "true" ]]; then
|
||||||
|
. version.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z "${BUILD_SOURCEVERSION}" ]]; then
|
||||||
|
echo "Will not update version JSON because no BUILD_SOURCEVERSION defined"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
# {
|
# {
|
||||||
# "url": "https://az764295.vo.msecnd.net/stable/51b0b28134d51361cf996d2f0a1c698247aeabd8/VSCode-darwin-stable.zip",
|
# "url": "https://az764295.vo.msecnd.net/stable/51b0b28134d51361cf996d2f0a1c698247aeabd8/VSCode-darwin-stable.zip",
|
||||||
# "name": "1.33.1",
|
# "name": "1.33.1",
|
||||||
|
@ -75,7 +84,7 @@ generateJson() {
|
||||||
updateLatestVersion() {
|
updateLatestVersion() {
|
||||||
echo "Generating ${VERSION_PATH}/latest.json"
|
echo "Generating ${VERSION_PATH}/latest.json"
|
||||||
|
|
||||||
# do not update the same version since BUILD_SOURCEVERSION might be different
|
# do not update the same version
|
||||||
if [[ -f "versions/${VERSION_PATH}/latest.json" ]]; then
|
if [[ -f "versions/${VERSION_PATH}/latest.json" ]]; then
|
||||||
CURRENT_VERSION=$( jq -r '.name' "versions/${VERSION_PATH}/latest.json" )
|
CURRENT_VERSION=$( jq -r '.name' "versions/${VERSION_PATH}/latest.json" )
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue