secrets gotta be weird
This commit is contained in:
parent
f104fc27d9
commit
ab2e9e5cad
2 changed files with 3 additions and 3 deletions
4
.github/workflows/build-macos.yml
vendored
4
.github/workflows/build-macos.yml
vendored
|
@ -35,9 +35,9 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Change Version
|
- name: Change Version
|
||||||
run: sudo chmod +x resources/version.sh && ./resources/version.sh || true
|
|
||||||
env:
|
env:
|
||||||
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
REQUEST_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
run: sudo chmod +x resources/version.sh && ./resources/version.sh || true
|
||||||
|
|
||||||
- name: Sign in to EVS
|
- name: Sign in to EVS
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Setup the variables needed
|
# Setup the variables needed
|
||||||
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)
|
STABLE_SHA=$(curl -H "Authorization: token ${REQUEST_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)
|
SHA_DATE=$(git show -s --format=%ci $STABLE_SHA)
|
||||||
COMMIT_SINCE_STABLE=$(git rev-list $STABLE_SHA..HEAD --count --since="$SHA_DATE")
|
COMMIT_SINCE_STABLE=$(git rev-list $STABLE_SHA..HEAD --count --since="$SHA_DATE")
|
||||||
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue