galaxy-import-role/entrypoint.sh
2023-07-18 09:26:40 +02:00

10 lines
272 B
Bash

#! /bin/sh
set -e
command_string="ansible-galaxy role import"
if [ -n "${GALAXY_API_TOKEN}" ]; then
command_string="$command_string --api-key ${GALAXY_API_TOKEN} ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY#*/}"
fi
echo "Command: $command_string"
eval "$command_string"