Browse Source

do not hard code the repository

fixes #37
fzerorubigd 6 years ago
parent
commit
225fbb2dea
1 changed files with 2 additions and 1 deletions
  1. 2 1
      check_tags.sh

+ 2 - 1
check_tags.sh

@@ -1,6 +1,7 @@
 #!/bin/bash
 #!/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}"
 echo "Github response: ${GITHUB_RESPONSE}"
 VSCODIUM_ASSETS=$(echo $GITHUB_RESPONSE | jq '.assets')
 VSCODIUM_ASSETS=$(echo $GITHUB_RESPONSE | jq '.assets')
 echo "VSCodium assets: ${VSCODIUM_ASSETS}"
 echo "VSCodium assets: ${VSCODIUM_ASSETS}"