Added it back

This commit is contained in:
Core 2022-08-03 23:15:14 +01:00
parent e1d731f8ce
commit 3646926b20
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -1,7 +1,8 @@
#!/bin/bash
STABLE_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep '"sha"' | head -1 | cut -d '"' -f 4)
COMMITSINCESTABLE=$(git rev-list $STABLE_SHA..HEAD --count)
SHA_DATE=$(git show -s --format=%ci $STABLE_SHA)
COMMITSINCESTABLE=$(git rev-list $STABLE_SHA..HEAD --count --since="$SHA_DATE")
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
# Set the version number for commits on main branch