{"id":28519929,"url":"https://github.com/ansible-community/github-action-test-galaxy-import","last_synced_at":"2026-05-09T02:18:55.093Z","repository":{"id":217739826,"uuid":"744691445","full_name":"ansible-community/github-action-test-galaxy-import","owner":"ansible-community","description":"GitHub Action for testing Galaxy import of an Ansible collection","archived":false,"fork":false,"pushed_at":"2025-03-03T17:59:54.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-05T13:34:04.365Z","etag":null,"topics":["actions","ansible","collections","github"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ansible-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-17T20:14:17.000Z","updated_at":"2025-03-03T17:59:57.000Z","dependencies_parsed_at":"2024-01-21T14:44:16.209Z","dependency_job_id":"9c225353-60b0-4355-ab32-93b30184cb41","html_url":"https://github.com/ansible-community/github-action-test-galaxy-import","commit_stats":null,"previous_names":["ansible-community/github-action-test-galaxy-import"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ansible-community/github-action-test-galaxy-import","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fgithub-action-test-galaxy-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fgithub-action-test-galaxy-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fgithub-action-test-galaxy-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fgithub-action-test-galaxy-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansible-community","download_url":"https://codeload.github.com/ansible-community/github-action-test-galaxy-import/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fgithub-action-test-galaxy-import/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265327760,"owners_count":23747761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","ansible","collections","github"],"created_at":"2025-06-09T06:31:00.988Z","updated_at":"2025-10-27T07:14:11.265Z","avatar_url":"https://github.com/ansible-community.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nCopyright (c) Ansible Project\nGNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)\nSPDX-License-Identifier: GPL-3.0-or-later\n--\u003e\n\n# GitHub Action for testing importing an Ansible collection with the Galaxy importer\n\n[![Linting](https://github.com/ansible-community/github-action-test-galaxy-import/actions/workflows/linting.yml/badge.svg)](https://github.com/ansible-community/github-action-test-galaxy-import/actions/workflows/linting.yml)\n[![Tests](https://github.com/ansible-community/github-action-test-galaxy-import/actions/workflows/tests.yml/badge.svg)](https://github.com/ansible-community/github-action-test-galaxy-import/actions/workflows/tests.yml)\n[![REUSE](https://github.com/ansible-community/github-action-test-galaxy-import/actions/workflows/reuse.yml/badge.svg)](https://github.com/ansible-community/github-action-test-galaxy-import/actions/workflows/reuse.yml)\n\nA composite GitHub Action that allows to test importing a built Ansible collection with the [Galaxy importer](https://github.com/ansible/galaxy-importer) in GitHub Actions CI/CD workflows.\n\nWhile this action can be used directly in workflows, we suggest to use the [bundled shared workflow](#bundled-shared-workflow).\n\nThis action is covered by the [Ansible Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html).\n\n## Usage\n\nTo use the action, add the following step to your workflow file (for example `.github/workflows/galaxy-import.yml`):\n\n```yaml\n- name: Test collection import\n  uses: ansible-community/github-action-test-galaxy-import@main\n  with:\n    artifact-path: /path/to/foo-bar-1.0.0.tar.gz\n```\n\n## Options\n\nThe follow options can be provided to this GitHub Action.\n\n### `artifact-path`\n\nPath to the collection's build artifact (tarball).\n\n**(REQUIRED)**\n\n### `python-version`\n\nThe Python version to use.\n\nNote that 3.12 currently does not work due to https://github.com/madpah/requirements-parser/issues/88.\n\n**(DEFAULT: `3.11`)**\n\n### `ansible-core-version`\n\nThe branch of tag name of ansible-core to install.\nThis is assumed to exist in https://github.com/ansible/ansible.\n\n**(DEFAULT: `stable-2.16`)**\n\n### `collection-requirements-path`\n\nPath to a Galaxy requirements file. If present, these collections will be installed.\n\n### `importer-config-path`\n\nPath to a Galaxy importer configuration file.\nSee https://github.com/ansible/galaxy-importer#configuration for more information.\n\n## Bundled shared workflow\n\nThis GitHub Action bundles a shared workflow, [test-galaxy-import.yml](https://github.com/ansible-community/github-action-test-galaxy-import/blob/main/.github/workflows/test-galaxy-import.yml), which allows you to build a collection and test importing it with the Galaxy importer.\n\n```yaml\nname: import-galaxy\n'on':\n  # Run CI against all pushes (direct commits, also merged PRs) to main and the stable-* branches, and all Pull Requests\n  push:\n    branches:\n      - main\n      - stable-*\n  pull_request:\n\njobs:\n  import-galaxy:\n    permissions:\n      contents: read\n    name: Import collection with Galaxy importer\n    uses: ansible-community/github-action-test-galaxy-import/.github/workflows/test-galaxy-import.yml@main\n```\n\nIf your collection's root (where `galaxy.yml` is) is in a subdirectory of the repository, use the `subdirectory` option:\n\n```yaml\njobs:\n  import-galaxy:\n    permissions:\n      contents: read\n    name: Import collection with Galaxy importer\n    uses: ansible-community/github-action-test-galaxy-import/.github/workflows/test-galaxy-import.yml@main\n    with:\n      subdirectory: ansible_collections/foo/bar\n```\n\nPlease check out the workflow for other supported options.\n\n## License\n\nThis action is primarily licensed and distributed as a whole under the GNU General Public License v3.0 or later.\n\nSee [LICENSES/GPL-3.0-or-later.txt](https://github.com/ansible-community/github-action-test-galaxy-import/blob/main/COPYING) for the full text.\n\nAll files have a machine readable `SDPX-License-Identifier:` comment denoting its respective license(s) or an equivalent entry in an accompanying `.license` file. This conforms to the [REUSE specification](https://reuse.software/spec/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-community%2Fgithub-action-test-galaxy-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansible-community%2Fgithub-action-test-galaxy-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-community%2Fgithub-action-test-galaxy-import/lists"}