Removed the checkout shit

This commit is contained in:
Core 2022-08-03 16:19:15 +01:00
parent 6e6de42f3f
commit d7bd15cf6b
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
2 changed files with 4 additions and 15 deletions

View file

@ -1,14 +1,9 @@
#!/bin/bash
# DEBUGGING
STABLE_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs | cut -d' ' -f1 | head -n 1)
COMMITSINCESTABLE=$(git rev-list $STABLE_SHA..$GITHUB_SHA --count)
STABLE_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep '"sha"' | head -1 | cut -d '"' -f 4)
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")
git rev-list --all
#############################################################################################
if [[ ($CIRCLE_BRANCH == "main" || $GITHUB_REF_NAME == "main") && $COMMITSINCESTABLE -gt 0 ]]; then
NEW_VERSION="${CURRENT_VERSION}-beta.${COMMITSINCESTABLE}"
else
@ -26,4 +21,4 @@ if [[ -z "${GITHUB_ENV}" ]]; then
echo "APP_VERSION=$(node -p -e 'require("./package.json").version')" >>$GITHUB_ENV
elif [[ -z "${BASH_ENV}" ]]; then
echo "export APP_VERSION=$(node -p -e 'require("./package.json").version')" >>$BASH_ENV
fi
fi