Browse Source

Add null check for GH token

Peter Squicciarini 6 years ago
parent
commit
85da65c0b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      check_tags.ps1

+ 1 - 1
check_tags.ps1

@@ -5,7 +5,7 @@ $VSCODIUM_ASSETS= $GITHUB_RESPONSE | jq '.assets'
 echo "VSCodium assets: ${VSCODIUM_ASSETS}"
 echo "VSCodium assets: ${VSCODIUM_ASSETS}"
 
 
 # if we just don't have the github token, get out fast
 # if we just don't have the github token, get out fast
-if (!$env:MAPPED_GITHUB_TOKEN -like "*GITHUB_TOKEN*") {
+if (!$env:MAPPED_GITHUB_TOKEN -or $env:MAPPED_GITHUB_TOKEN -like "*GITHUB_TOKEN*") {
   echo "This build does not have the GH token"
   echo "This build does not have the GH token"
   echo $env:MAPPED_GITHUB_TOKEN
   echo $env:MAPPED_GITHUB_TOKEN
   return
   return