ansible-consul icon indicating copy to clipboard operation
ansible-consul copied to clipboard

galaxy-action is failed to push tags to Ansible Galaxy

Open gofrolist opened this issue 3 years ago • 0 comments

Looks like galaxy_api_key is lost in secrets during migration of this repo to ansible-community repo.

This is an error I noticed in actions then tag is pushed https://github.com/ansible-community/ansible-consul/runs/976257530?check_suite_focus=true

Run robertdebock/[email protected]
/usr/bin/docker run --name robertdebockgithubactiongalaxy_689c93 --label 8118cb --workdir /github/workspace --rm -e INPUT_GALAXY_API_KEY -e galaxy_api_key -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/ansible-consul/ansible-consul":"/github/workspace" robertdebock/github-action-galaxy
usage: ansible-galaxy role import [-h] [-s API_SERVER] [--api-key API_KEY]
                                  [-c] [-v] [--no-wait] [--branch REFERENCE]
                                  [--role-name ROLE_NAME] [--status]
                                  github_user github_repo
ansible-galaxy role import: error: the following arguments are required: github_repo

Here is my pull request where I include galaxy-action https://github.com/ansible-community/ansible-consul/pull/360/files#r365563208

You will need to create galaxy_api_key in secrets and put there API Key from Ansible Galaxy https://galaxy.ansible.com/me/preferences

gofrolist avatar Aug 19 '20 09:08 gofrolist