diff --git a/github-dev/upload-assets b/github-dev/upload-assets index 78d217f..6da9a79 100755 --- a/github-dev/upload-assets +++ b/github-dev/upload-assets @@ -2,8 +2,8 @@ set -e set -o pipefail -if [[ -z "$GITHUB_TOKEN" ]]; then - echo "Set the GITHUB_TOKEN env variable." +if [[ -z "$TOKEN" ]]; then + echo "Set the TOKEN env variable." exit 1 fi @@ -15,7 +15,7 @@ fi URI=https://api.github.com API_VERSION=v3 API_HEADER="Accept: application/vnd.github.${API_VERSION}+json" -AUTH_HEADER="Authorization: token ${GITHUB_TOKEN}" +AUTH_HEADER="Authorization: token ${TOKEN}" main(){ local files