constellation/.github/actions/versionsapi/entrypoint.sh
Paul Meyer 6d6ef99f11 ci: run versionsapi as docker action
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2023-01-13 10:23:43 +01:00

19 lines
295 B
Bash
Executable File

#!/usr/bin/env bash
for arg in "$@"; do
if [[ ${arg} != "" ]]; then
args[${#args[@]}]="${arg}"
fi
done
out=$(/versionsapi "${args[@]}")
if [[ $? -ne 0 ]]; then
exit 1
fi
if [[ ${GITHUB_ACTIONS} == "true" ]]; then
echo "output=${out}" | tee "${GITHUB_ENV}"
else
echo "${out}"
fi