mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-13 20:28:18 +10:00
Compare commits
5 Commits
1.79.0.231
...
1.79.1.231
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
272566cc25 | ||
|
|
d3db3c1f52 | ||
|
|
aac82d75f4 | ||
|
|
c66d9b7edc | ||
|
|
73f7d062da |
2
.github/workflows/stable-linux.yml
vendored
2
.github/workflows/stable-linux.yml
vendored
@@ -133,7 +133,7 @@ jobs:
|
||||
npm_arch: arm
|
||||
image: vscodium/vscodium-linux-build-agent:buster-armhf
|
||||
- vscode_arch: ppc64le
|
||||
npm_arch: ppcc64le
|
||||
npm_arch: ppc64le
|
||||
image: vscodium/vscodium-linux-build-agent:bionic-ppc64le
|
||||
container:
|
||||
image: ${{ matrix.image }}
|
||||
|
||||
@@ -21,6 +21,11 @@ if [[ -z "${BUILD_SOURCEVERSION}" ]]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ "${VSCODE_ARCH}" == "ppc64le" ]]; then
|
||||
echo "Skip ppc64le since only reh is published"
|
||||
exit
|
||||
fi
|
||||
|
||||
# {
|
||||
# "url": "https://az764295.vo.msecnd.net/stable/51b0b28134d51361cf996d2f0a1c698247aeabd8/VSCode-darwin-stable.zip",
|
||||
# "name": "1.33.1",
|
||||
@@ -83,22 +88,27 @@ generateJson() {
|
||||
}
|
||||
|
||||
updateLatestVersion() {
|
||||
echo "Generating ${VERSION_PATH}/latest.json"
|
||||
echo "Updating ${VERSION_PATH}/latest.json"
|
||||
|
||||
# do not update the same version
|
||||
if [[ -f "versions/${VERSION_PATH}/latest.json" ]]; then
|
||||
CURRENT_VERSION=$( jq -r '.name' "versions/${VERSION_PATH}/latest.json" )
|
||||
if [[ -f "${REPOSITORY_NAME}/${VERSION_PATH}/latest.json" ]]; then
|
||||
CURRENT_VERSION=$( jq -r '.name' "${REPOSITORY_NAME}/${VERSION_PATH}/latest.json" )
|
||||
echo "CURRENT_VERSION: ${CURRENT_VERSION}"
|
||||
|
||||
if [[ "${CURRENT_VERSION}" == "${RELEASE_VERSION}" && "${FORCE_UPDATE}" != "true" ]]; then
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
mkdir -p "versions/${VERSION_PATH}"
|
||||
echo "Generating ${VERSION_PATH}/latest.json"
|
||||
|
||||
mkdir -p "${REPOSITORY_NAME}/${VERSION_PATH}"
|
||||
|
||||
generateJson
|
||||
|
||||
echo "${JSON_DATA}" > "versions/${VERSION_PATH}/latest.json"
|
||||
echo "${JSON_DATA}" > "${REPOSITORY_NAME}/${VERSION_PATH}/latest.json"
|
||||
|
||||
echo "${JSON_DATA}"
|
||||
}
|
||||
|
||||
# init versions repo for later commiting + pushing the json file to it
|
||||
@@ -159,12 +169,18 @@ git add .
|
||||
CHANGES=$( git status --porcelain )
|
||||
|
||||
if [[ ! -z "${CHANGES}" ]]; then
|
||||
echo "Some changes have been found, pushing them"
|
||||
|
||||
dateAndMonth=$( date "+%D %T" )
|
||||
|
||||
git commit -m "CI update: ${dateAndMonth} (Build ${GITHUB_RUN_NUMBER})"
|
||||
|
||||
if ! git push origin master --quiet; then
|
||||
git pull origin master
|
||||
git push origin master --quiet
|
||||
fi
|
||||
else
|
||||
echo "No changes"
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
Reference in New Issue
Block a user