ima just comment this as its clear if its beta or not based on commit count
This commit is contained in:
parent
4844fcc29f
commit
60159617b8
2 changed files with 21 additions and 14 deletions
|
@ -4,5 +4,12 @@ LATEST_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable
|
|||
COMMITSINCESTABLE=$(git rev-list $LATEST_SHA..HEAD --count)
|
||||
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
||||
NEW_VERSION=${CURRENT_VERSION/-/.}.$COMMITSINCESTABLE
|
||||
echo "Version: $NEW_VERSION"
|
||||
sed -i "0,/$CURRENT_VERSION/s//$NEW_VERSION/" package.json
|
||||
if [[ $COMMITSINCESTABLE -gt 0 ]]
|
||||
then
|
||||
echo "Version: $NEW_VERSION"
|
||||
sed -i "0,/$CURRENT_VERSION/s//$NEW_VERSION/" package.json
|
||||
else
|
||||
echo "Version unchanged, commits since stable is 0"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue