ffs again
This commit is contained in:
parent
0c3f63fbb8
commit
a4a7a976c4
1 changed files with 3 additions and 1 deletions
|
@ -3,8 +3,10 @@
|
||||||
# Setup the variables needed
|
# Setup the variables needed
|
||||||
if [[ $GITHUB_REF_NAME == "main" ]]; then
|
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)
|
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
|
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
|
fi
|
||||||
|
|
||||||
SHA_DATE=$(git show -s --format=%ci $STABLE_SHA)
|
SHA_DATE=$(git show -s --format=%ci $STABLE_SHA)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue