patch replaced
This commit is contained in:
parent
60159617b8
commit
9c65b17023
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
LATEST_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs)
|
||||
COMMITSINCESTABLE=$(git rev-list $LATEST_SHA..HEAD --count)
|
||||
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
||||
NEW_VERSION=${CURRENT_VERSION/-/.}.$COMMITSINCESTABLE
|
||||
NEW_VERSION=${CURRENT_VERSION/0/$COMMITSINCESTABLE}
|
||||
if [[ $COMMITSINCESTABLE -gt 0 ]]
|
||||
then
|
||||
echo "Version: $NEW_VERSION"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue