(experiment) set repository according to GH action env var

This commit is contained in:
Peter Squicciarini 2020-09-18 05:57:00 -07:00
parent 137a891882
commit 9a046ea3a0
No known key found for this signature in database
GPG Key ID: 08B897BCAB6763CB

View File

@ -1,6 +1,10 @@
#!/bin/bash
REPOSITORY=${TRAVIS_REPO_SLUG:-"VSCodium/vscodium"}
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
REPOSITORY=$GITHUB_REPOSITORY
else
REPOSITORY=${TRAVIS_REPO_SLUG:-"VSCodium/vscodium"}
fi
GITHUB_RESPONSE=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/$REPOSITORY/releases/tags/$LATEST_MS_TAG)
echo "Github response: ${GITHUB_RESPONSE}"
VSCODIUM_ASSETS=$(echo $GITHUB_RESPONSE | jq '.assets')