Browse Source

Merge pull request #39 from fzerorubigd/master

Do not hard code the repository
Fixes #37
Peter Squicciarini 6 năm trước cách đây
mục cha
commit
b5b89730a4
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      check_tags.sh

+ 2 - 1
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}"