2024-07-19 15:11:50 +05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Entrypoint that handles both GitHub/Gitea actions things and direct commands execution.
|
2024-07-19 23:30:31 +05:00
|
|
|
echo "----------"
|
|
|
|
echo "Launching command:"
|
|
|
|
echo "$@"
|
|
|
|
echo "----------"
|
|
|
|
|
2024-07-19 23:54:51 +05:00
|
|
|
CMD=$*
|
|
|
|
|
|
|
|
if [ "${CMD}" == "" ]; then
|
|
|
|
CMD="${INPUT_COMMAND}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${CMD}" == "" ]; then
|
|
|
|
echo "! No command to run!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
"${CMD}"
|