Do not forget to pull the new deploy script

master
LEdoian 3 years ago
parent 167d7d6059
commit 0214fc0c87

@ -27,7 +27,7 @@ currentbranch="$(git rev-parse --abbrev-ref HEAD)"
# If we are not on target branch, switch and run again # If we are not on target branch, switch and run again
if test "$currentbranch" '!=' "$branch"; then if test "$currentbranch" '!=' "$branch"; then
exec /bin/sh -eu -c "git checkout $branch && exec $0 $branch" exec /bin/sh -eu -c "git checkout $branch && git pull && exec $0 $branch"
fi fi
echo "Deploying branch $branch" echo "Deploying branch $branch"

Loading…
Cancel
Save