FFS
This commit is contained in:
parent
ed58b808be
commit
0794b83cea
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ SHA_DATE=$(git show -s --format=%ci $STABLE_SHA)
|
||||||
COMMITSINCESTABLE=$(git rev-list $STABLE_SHA..HEAD --count --since="$SHA_DATE")
|
COMMITSINCESTABLE=$(git rev-list $STABLE_SHA..HEAD --count --since="$SHA_DATE")
|
||||||
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
||||||
LATEST_VERSION=$(curl -s https://api.github.com/repos/ciderapp/cider-releases/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//' | xargs)
|
LATEST_VERSION=$(curl -s https://api.github.com/repos/ciderapp/cider-releases/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//' | xargs)
|
||||||
GITHUB_REF_NAME="main"
|
|
||||||
|
|
||||||
# Set the version number for commits on main branch
|
# Set the version number for commits on main branch
|
||||||
if [[ ($CIRCLE_BRANCH == "main" || $GITHUB_REF_NAME == "main") && $COMMITSINCESTABLE -gt 0 ]]; then
|
if [[ ($CIRCLE_BRANCH == "main" || $GITHUB_REF_NAME == "main") && $COMMITSINCESTABLE -gt 0 ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue