version fix
This commit is contained in:
parent
38dd440531
commit
65ef41ab01
1 changed files with 2 additions and 1 deletions
|
@ -9,8 +9,9 @@ else
|
||||||
STABLE_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep '"sha"' | head -1 | cut -d '"' -f 4)
|
STABLE_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep '"sha"' | head -1 | cut -d '"' -f 4)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
SHA_DATE=$(git show -s --format=%ci $STABLE_SHA)
|
SHA_DATE=$(git show -s --format=%ci $STABLE_SHA)
|
||||||
COMMIT_SINCE_STABLE=$(git rev-list $STABLE_SHA..HEAD --count --since="$SHA_DATE")
|
COMMIT_SINCE_STABLE=$(printf "%03d\n" $(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")
|
||||||
|
|
||||||
# Set the version number for commits on main branch
|
# Set the version number for commits on main branch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue