2023-03-09 12:03:14 +00:00
|
|
|
#! /bin/sh
|
|
|
|
set -e
|
2023-07-17 21:53:58 +00:00
|
|
|
command_string="/usr/local/bin/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"
|