Don't push if the build fails (#9)

This change makes the script immediately exit if any part of it fails
This commit is contained in:
Steve Stagg 2019-07-18 17:09:49 +01:00 committed by James Ives
parent 46b59760fc
commit 561f84338b

View File

@ -1,5 +1,7 @@
#!/bin/sh -l #!/bin/sh -l
set -e
if [ -z "$ACCESS_TOKEN" ] if [ -z "$ACCESS_TOKEN" ]
then then
echo "You must provide the action with a GitHub Personal Access Token secret in order to deploy." echo "You must provide the action with a GitHub Personal Access Token secret in order to deploy."