ima just comment this as its clear if its beta or not based on commit count

This commit is contained in:
Core 2022-06-03 15:18:35 +01:00
parent 4844fcc29f
commit 60159617b8
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
2 changed files with 21 additions and 14 deletions

View file

@ -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