ci: get MS_TAG from update api (#1196)
This commit is contained in:
parent
118ea7993d
commit
7327f9910d
1 changed files with 4 additions and 2 deletions
|
@ -1,13 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
# git workaround
|
# git workaround
|
||||||
if [[ "${CI_BUILD}" != "no" ]]; then
|
if [[ "${CI_BUILD}" != "no" ]]; then
|
||||||
git config --global --add safe.directory /__w/vscodium/vscodium
|
git config --global --add safe.directory /__w/vscodium/vscodium
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${RELEASE_VERSION}" ]]; then
|
if [[ -z "${RELEASE_VERSION}" ]]; then
|
||||||
git fetch --all
|
UPDATE_INFO=$(curl https://update.code.visualstudio.com/api/update/darwin/stable/lol)
|
||||||
MS_TAG=$( git tag -l --sort=-version:refname | head -1 )
|
export MS_TAG=$(echo "${UPDATE_INFO}" | jq -r '.name')
|
||||||
date=$( date +%Y%j )
|
date=$( date +%Y%j )
|
||||||
export RELEASE_VERSION="${MS_TAG}.${date: -5}"
|
export RELEASE_VERSION="${MS_TAG}.${date: -5}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue