Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
Added check for github token to release script
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin authored Jun 22, 2017
1 parent 7cac0f9 commit c9208bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions release-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ if [ -z "$1" ]; then
exit 1
fi

if [ -z "$GITHUB_TOKEN" ]; then
echo "Please set the GITHUB_TOKEN variable to release a new version"
exit 1
fi

read -r -p "Create a new tag for version $1, push it, and build a release? [y/N] " response
case "$response" in
[yY][eE][sS]|[yY])
Expand Down

0 comments on commit c9208bf

Please sign in to comment.