mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
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:
parent
46b59760fc
commit
561f84338b
@ -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."
|
||||||
|
Loading…
Reference in New Issue
Block a user