Try to use INPUT_COMMAND variable while at actions mode.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Stanislav Nikitin 2024-07-19 23:54:51 +05:00
parent 4e1dc58611
commit b4e9d9ec58
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550

View File

@ -6,4 +6,15 @@ echo "Launching command:"
echo "$@" echo "$@"
echo "----------" echo "----------"
"$@" CMD=$*
if [ "${CMD}" == "" ]; then
CMD="${INPUT_COMMAND}"
fi
if [ "${CMD}" == "" ]; then
echo "! No command to run!"
exit 1
fi
"${CMD}"