mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-23 19:40:14 +10:00
ci(spearhead): add more details [skip ci]
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
if [[ "${SHOULD_BUILD}" != "yes" ]]; then
|
if [[ "${SHOULD_BUILD}" != "yes" ]]; then
|
||||||
echo "Will not update version JSON because we did not build"
|
echo "Will not update version JSON because we did not build"
|
||||||
@@ -14,14 +14,19 @@ fi
|
|||||||
|
|
||||||
echo "$( cat "insider.json" | jq --arg 'tag' "${MS_TAG}" --arg 'commit' "${MS_COMMIT}" '. | .tag=$tag | .commit=$commit' )" > "insider.json"
|
echo "$( cat "insider.json" | jq --arg 'tag' "${MS_TAG}" --arg 'commit' "${MS_COMMIT}" '. | .tag=$tag | .commit=$commit' )" > "insider.json"
|
||||||
|
|
||||||
git config user.email "vscodium-ci@not-real.com"
|
git status
|
||||||
git config user.name "VSCodium CI"
|
|
||||||
|
git config --global user.email "vscodium-ci@not-real.com"
|
||||||
|
git config --global user.name "VSCodium CI"
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
CHANGES=$( git status --porcelain )
|
CHANGES=$( git status --porcelain )
|
||||||
|
|
||||||
if [[ ! -z "${CHANGES}" ]]; then
|
if [[ ! -z "${CHANGES}" ]]; then
|
||||||
git commit -m "build(insider): update to commit ${MS_COMMIT:0:7}"
|
git commit -m "build(insider): update to commit ${MS_COMMIT:0:7}"
|
||||||
|
|
||||||
|
git status
|
||||||
|
|
||||||
if ! git push origin insider --quiet; then
|
if ! git push origin insider --quiet; then
|
||||||
git pull origin insider
|
git pull origin insider
|
||||||
git push origin insider --quiet
|
git push origin insider --quiet
|
||||||
|
|||||||
Reference in New Issue
Block a user