Skip to content

Commit

Permalink
Don't push if the build fails (#9)
Browse files Browse the repository at this point in the history
This change makes the script immediately exit if any part of it fails
  • Loading branch information
stestagg authored and JamesIves committed Jul 18, 2019
1 parent 46b5976 commit 561f843
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh -l

set -e

if [ -z "$ACCESS_TOKEN" ]
then
echo "You must provide the action with a GitHub Personal Access Token secret in order to deploy."
Expand Down

0 comments on commit 561f843

Please sign in to comment.