Explorar o código

(experiment) set repository according to GH action env var

Peter Squicciarini %!s(int64=5) %!d(string=hai) anos
pai
achega
9a046ea3a0
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      check_tags.sh

+ 5 - 1
check_tags.sh

@@ -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')