From 31f28f832f4e7241c66822d425d0a6ab57aa23f2 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 24 Sep 2018 16:47:40 -0400 Subject: [PATCH] update Signed-off-by: Jess Frazelle --- github-dev/upload-assets | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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."