Files
actions/github-deploy/bin/deployment-exec-try
Ole Christian Langfjæran 3e74af75c8 Create an exec try command (#8)
* Create an exec command

* Remove getting deployment_id

* Execute $* instead of first param

* Update README and rename command
2019-01-09 09:50:27 +01:00

11 lines
219 B
Bash
Executable File

#!/bin/sh
BASEDIR=$(dirname "$0")
sh -c "$*"
RESULT=$?
if [[ 0 != "${RESULT}" ]];then
echo "Failed '$*'! Exit code '${RESULT}' is not equal to 0"
${BASEDIR}/deployment-create-status error
exit ${RESULT}
fi