ffs again

This commit is contained in:
Core 2022-08-04 18:55:17 +01:00
parent 0c3f63fbb8
commit a4a7a976c4
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -3,8 +3,10 @@
# Setup the variables needed
if [[ $GITHUB_REF_NAME == "main" ]]; then
STABLE_SHA=$(curl -H "Authorization: token ${GH_REQUEST_TOKEN}" https://api.github.com/repos/ciderapp/Cider/branches/stable | grep '"sha"' | head -1 | cut -d '"' -f 4)
elif [[ $CIRCLE_BRANCH == "main" ]]; then
STABLE_SHA=$(curl -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/ciderapp/Cider/branches/stable | grep '"sha"' | head -1 | cut -d '"' -f 4)
else
STABLE_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/main | grep '"sha"' | head -1 | cut -d '"' -f 4)
STABLE_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep '"sha"' | head -1 | cut -d '"' -f 4)
fi
SHA_DATE=$(git show -s --format=%ci $STABLE_SHA)