#!/bin/bash # Entrypoint that handles both GitHub/Gitea actions things and direct commands execution. echo "----------" echo "Launching command:" echo "$@" echo "----------" CMD=$* if [ "${CMD}" == "" ]; then CMD="${INPUT_COMMAND}" fi if [ "${CMD}" == "" ]; then echo "! No command to run!" exit 1 fi "${CMD}"