Просмотр исходного кода

fix: don't loop when there is no assets in the tag (#837)

Baptiste Augrain 4 лет назад
Родитель
Сommit
ef1ce60ad8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      check_tags.sh

+ 1 - 1
check_tags.sh

@@ -4,7 +4,7 @@ set -e
 
 REPOSITORY="${GITHUB_REPOSITORY:-"VSCodium/vscodium"}"
 GITHUB_RESPONSE=$( curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/$REPOSITORY/releases/tags/$MS_TAG)
-VSCODIUM_ASSETS=$( echo $GITHUB_RESPONSE | jq -c '.assets | map(.name)' )
+VSCODIUM_ASSETS=$( echo $GITHUB_RESPONSE | jq -c '.assets | map(.name)?' )
 
 contains() {
   # add " to match the end of a string so any hashs won't be matched by mistake