From 0c3f63fbb8a667d07921a7ed037ff0d4f3d9266e Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Thu, 4 Aug 2022 18:47:18 +0100 Subject: [PATCH] ffs --- resources/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/version.sh b/resources/version.sh index 1a1a0d3b..0fe78de2 100755 --- a/resources/version.sh +++ b/resources/version.sh @@ -4,7 +4,7 @@ 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) else - STABLE_SHA=$(curl -H "Authorization: token ${GITHUB_TOKEN}" 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/main | grep '"sha"' | head -1 | cut -d '"' -f 4) fi SHA_DATE=$(git show -s --format=%ci $STABLE_SHA)