diff --git a/github-dev/upload-assets b/github-dev/upload-assets index 3064813..093812d 100755 --- a/github-dev/upload-assets +++ b/github-dev/upload-assets @@ -2,7 +2,9 @@ set -e set -o pipefail -GITHUB_TOKEN=${GITHUB_TOKEN:-$TOKEN} +if [[ ! -z "$TOKEN" ]]; then + GITHUB_TOKEN=$TOKEN +fi if [[ -z "$GITHUB_TOKEN" ]]; then echo "Set the GITHUB_TOKEN env variable."