mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-03 13:45:19 +03:00
(experiment) set repository according to GH action env var
This commit is contained in:
parent
137a891882
commit
9a046ea3a0
@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/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)
|
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}"
|
echo "Github response: ${GITHUB_RESPONSE}"
|
||||||
VSCODIUM_ASSETS=$(echo $GITHUB_RESPONSE | jq '.assets')
|
VSCODIUM_ASSETS=$(echo $GITHUB_RESPONSE | jq '.assets')
|
||||||
|
Loading…
Reference in New Issue
Block a user