From 225fbb2dea1c9d37783e8640ba1fa875b4f6d052 Mon Sep 17 00:00:00 2001 From: fzerorubigd Date: Thu, 11 Oct 2018 17:43:23 +0200 Subject: [PATCH] do not hard code the repository fixes #37 --- check_tags.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_tags.sh b/check_tags.sh index e7fe6e4..c273848 100755 --- a/check_tags.sh +++ b/check_tags.sh @@ -1,6 +1,7 @@ #!/bin/bash -GITHUB_RESPONSE=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/VSCodium/vscodium/releases/tags/$LATEST_MS_TAG) +REPOSITORY=${TRAVIS_REPO_SLUG:-"VSCodium/vscodium"} +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') echo "VSCodium assets: ${VSCODIUM_ASSETS}"