Skip to content

Commit

Permalink
add guards for missing env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
xchapter7x committed Oct 28, 2019
1 parent 2d19d0c commit 4687a59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/create_new_release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash -xe
if [ -z ${GITHUB_REPO+x} ]; then echo "GITHUB_REPO is unset"; exit 1; fi
if [ -z ${GITHUB_TOKEN+x} ]; then echo "GITHUB_TOKEN is unset"; exit 1; fi
if [ -z ${GITHUB_USER+x} ]; then echo "GITHUB_USER is unset"; exit 1; fi
git pull --tags >/dev/null || true

echo "generate a rc build number"
Expand Down

0 comments on commit 4687a59

Please sign in to comment.