crural-angioscope53/Ansible Galaxy Publish Action
Publish an Ansible collection or role to Galaxy with one composite action. Supports dry-run.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| type | Publish target type: 'collection' or 'role'. | yes | — |
| api_key | Ansible Galaxy API key. Required unless dry_run is true. | no | "" |
| namespace | Galaxy namespace (e.g., 'somaz94'). Required for both modes. | yes | — |
| name | Collection or role name under 'namespace' (e.g., 'ansible_k8s_iac_tool' for a collection or 'ansible_kubectl_krew' for a role). | yes | — |
| working_directory | Directory containing galaxy.yml (collection) or meta/main.yml (role). | no | . |
| python_version | Python version installed by actions/setup-python. | no | 3.12 |
| ansible_version | ansible version pin for pip (e.g., '9.5.1'). Empty installs the latest. | no | "" |
| dry_run | When 'true', build the collection (if applicable) but skip the publish/import call. Useful for CI validation without a live API key. | no | false |
Outputs
| name | description |
|---|---|
| published_ref | Published reference, e.g., 'collection/somaz94.ansible_k8s_iac_tool@1.2.0' or 'role/somaz94.ansible_kubectl_krew'. Prefixed with 'dry-run:' when dry_run is true. |
| artifact_path | Absolute path to the built collection tarball (collection mode only; empty for role mode). |
| collection_version | Version declared in galaxy.yml (collection mode only; empty for role mode). |