mirror of
https://github.com/zhigang1992/actions.git
synced 2026-01-12 22:45:39 +08:00
* Create an exec command * Remove getting deployment_id * Execute $* instead of first param * Update README and rename command
11 lines
219 B
Bash
Executable File
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 |