{"id":28519921,"url":"https://github.com/ansible-community/github-action-build-collection","last_synced_at":"2026-05-08T01:31:41.825Z","repository":{"id":217739822,"uuid":"744691441","full_name":"ansible-community/github-action-build-collection","owner":"ansible-community","description":"GitHub Action for building Ansible collections","archived":false,"fork":false,"pushed_at":"2025-03-03T17:59:59.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-09T06:46:04.296Z","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}},"created_at":"2024-01-17T20:14:16.000Z","updated_at":"2025-03-03T18:00:03.000Z","dependencies_parsed_at":"2024-01-18T04:29:27.023Z","dependency_job_id":"396998c2-c37f-48cc-b91a-b6d5aa22e69a","html_url":"https://github.com/ansible-community/github-action-build-collection","commit_stats":null,"previous_names":["ansible-community/github-action-build-collection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ansible-community/github-action-build-collection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fgithub-action-build-collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fgithub-action-build-collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fgithub-action-build-collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fgithub-action-build-collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansible-community","download_url":"https://codeload.github.com/ansible-community/github-action-build-collection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fgithub-action-build-collection/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263749810,"owners_count":23505454,"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:30:57.564Z","updated_at":"2026-05-08T01:31:36.792Z","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 building Ansible collections\n\n[![Linting](https://github.com/ansible-community/github-action-build-collection/actions/workflows/linting.yml/badge.svg)](https://github.com/ansible-community/github-action-build-collection/actions/workflows/linting.yml)\n[![Tests](https://github.com/ansible-community/github-action-build-collection/actions/workflows/tests.yml/badge.svg)](https://github.com/ansible-community/github-action-build-collection/actions/workflows/tests.yml)\n[![REUSE](https://github.com/ansible-community/github-action-build-collection/actions/workflows/reuse.yml/badge.svg)](https://github.com/ansible-community/github-action-build-collection/actions/workflows/reuse.yml)\n\nA composite GitHub Action that allows to build an Ansible collection artifact in GitHub Actions CI/CD workflows.\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/build-collection.yml`):\n\n```yaml\n- name: Check out your collection repository\n  uses: actions/checkout@v4\n\n- name: Build collection\n  id: build-collection\n  uses: ansible-community/github-action-build-collection@main\n\n- name: Upload built collection as artifact\n  uses: actions/upload-artifact@v4\n  with:\n    name: my-collection\n    path: ${{ steps.build-collection.outputs.artifact-filename }}\n```\n\n## Options\n\nThe follow options can be provided to this GitHub Action.\n\n### `python-version`\n\nThe Python version to use for running ansible-core.\n\n**(DEFAULT: `3.12`)**\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### `subdirectory`\n\nThe subdirectory in which the collection's sources can be found. Must contain the `galaxy.yml` file.\n\n**(DEFAULT: `.`)**\n\n### `collection-requirements-path`\n\nIf provided, the collection's requirements will be written as a Galaxy `requirements.yml` file to this path.\n\n## Outputs\n\nThe GitHub Action provides the following outputs that can be used in further workflow steps.\n\n### `collection-full-name`\n\nThe collection's full name (namespace.name).\n\n### `collection-name`\n\nThe collection's name. For example `ansible.posix`'s name is `posix`.\n\n### `collection-namespace`\n\nThe collection's namespace. For example `ansible.posix`'s namespace is `ansible`.\n\n### `collection-version`\n\nThe collection's version. Will be set to `0.0.1` if no `version` field is present in `galaxy.yml`.\n\n### `artifact-filename`\n\nFilename of the built collection artifact.\n\n### `artifact-path`\n\nPath to the built collection artifact.\n\n## Bundled shared workflow\n\nThis GitHub Action bundles a shared workflow, [build-collection.yml](https://github.com/ansible-community/github-action-build-collection/blob/main/.github/workflows/build-collection.yml), which allows you to build a collection, and upload the built collection artifact together with its `requirements.yml` file as a GitHub artifact.\n\n```yaml\njobs:\n  build-collection:\n    name: Build collection artifact\n    permissions:\n      contents: read\n    uses: ansible-community/github-action-build-collection/.github/workflows/build-collection.yml@main\n```\n\nPlease check out the workflow for the options it supports, and for which outputs it provides.\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-build-collection/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-build-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansible-community%2Fgithub-action-build-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-community%2Fgithub-action-build-collection/lists"}