galaxy-import-role/entrypoint.sh

10 lines
272 B
Bash
Raw Normal View History

2023-03-09 12:03:14 +00:00
#! /bin/sh
set -e
2023-07-18 07:26:40 +00:00
command_string="ansible-galaxy role import"
2023-03-09 12:03:14 +00:00
2023-03-09 12:44:01 +00:00
if [ -n "${GALAXY_API_TOKEN}" ]; then
command_string="$command_string --api-key ${GALAXY_API_TOKEN} ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY#*/}"
2023-03-09 12:03:14 +00:00
fi
echo "Command: $command_string"
eval "$command_string"