feat: insider version (#1217)

This commit is contained in:
Baptiste Augrain
2022-08-29 15:13:25 +02:00
committed by GitHub
parent 58707d73ba
commit 61e880da67
194 changed files with 5378 additions and 212 deletions

28
update_insider.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
set -e
if [[ "${SHOULD_BUILD}" != "yes" ]]; then
echo "Will not update version JSON because we did not build"
exit
fi
if [[ -z "${GITHUB_TOKEN}" ]]; then
echo "Will not update insider.json because no GITHUB_TOKEN defined"
exit
fi
echo "$( cat "insider.json" | jq --arg 'tag' "${MS_TAG}" --arg 'commit' "${MS_COMMIT}" '. | .tag=$tag | .commit=$commit' )" > "insider.json"
git config user.name "VSCodium CI"
git add .
CHANGES=$( git status --porcelain )
if [[ ! -z "${CHANGES}" ]]; then
git commit -m "build(insider): update to commit ${MS_COMMIT:0:7}"
if ! git push origin master --quiet; then
git pull origin master
git push origin master --quiet
fi
fi