Add null check for GH token

This commit is contained in:
Peter Squicciarini 2018-12-22 17:14:08 -05:00
parent 1633faf377
commit 85da65c0b0
No known key found for this signature in database
GPG key ID: EB67E153FD9B5F44

View file

@ -5,7 +5,7 @@ $VSCODIUM_ASSETS= $GITHUB_RESPONSE | jq '.assets'
echo "VSCodium assets: ${VSCODIUM_ASSETS}"
# 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 $env:MAPPED_GITHUB_TOKEN
return