-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
action.yml
60 lines (56 loc) · 2.42 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
name: 'Deploy Ansible Galaxy Collection'
description: 'Builds and deploys a Collection to Ansible Galaxy'
author: 'Artis3n <[email protected]>'
inputs:
api_key:
description: |
Ansible Galaxy API key. This should be stored in a Secret on Github.
See https://help.github.com/en/github/automating-your-workflow-with-github-actions/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables.
required: true
collection_dir:
description: |
The directory in which the Ansible Collection is stored. This defaults to the project root.
required: false
default: './'
build:
description: |
You can now choose to build a collection without publishing, and vice versa.
If you wish to disable building a collection, set this parameter to "false."
required: true
default: "true"
publish:
description: |
You can now choose to publish a collection without building (from a pre-built archive), and vice versa.
If you wish to disable publishing a collection, set this parameter to "false."
required: true
default: "true"
galaxy_version:
description: Dynamically inject a semver-compatible version into your galaxy.yml file.
required: false
# galaxy_version_commit:
# description: The Action will write the `galaxy_version` value into your `galaxy.yml` and commit it.
# required: false
# galaxy_version_increment:
# description: |
# The Action will read the version in galaxy.yml and increment it based on the value provided in this parameter.
# Valid values are: `major`, `minor`, `patch`.
# Defaults to `patch`.
# required: false
# default: patch
galaxy_config_file:
description: |
DEPRECATED.
A collection must have a galaxy.yml file that contains the necessary information to build a
collection artifact.
Defaults to "galaxy.yml" in the `collection_dir`, which is by default the project root.
This parameter is deprecated as Ansible Galaxy requires the file to be named `galaxy.yml` and to exist in the root of your Collection. Use `collection_dir` to specify a non-root directory for your Collection.
required: false
default: 'galaxy.yml'
runs:
using: 'docker'
# Takes ~3 minutes to build the container so speed up consumer invocations by using pre-built image
image: docker://ghcr.io/artis3n/ansible_galaxy_collection:v2.10.1
branding:
icon: 'box'
color: 'purple'