Tokens
This commit is contained in:
parent
983f79ec49
commit
f104fc27d9
2 changed files with 3 additions and 3 deletions
|
@ -1,14 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Setup the variables needed
|
||||
STABLE_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep '"sha"' | head -1 | cut -d '"' -f 4)
|
||||
STABLE_SHA=$(curl -H "Authorization: token ${RELEASE_TOKEN}" 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)
|
||||
COMMIT_SINCE_STABLE=$(git rev-list $STABLE_SHA..HEAD --count --since="$SHA_DATE")
|
||||
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
||||
LATEST_VERSION=$(curl -s https://api.github.com/repos/ciderapp/cider-releases/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//' | xargs)
|
||||
|
||||
curl -H "Authorization: token ${RELEASE_TOKEN}" https://api.github.com/repos/ciderapp/Cider/branches/stable
|
||||
|
||||
# Debugging
|
||||
echo "STABLE_SHA: $STABLE_SHA"
|
||||
echo "SHA_DATE: $SHA_DATE"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue