-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yaml
99 lines (99 loc) · 2.9 KB
/
action.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: 'Open Component Model actions'
description: 'Execute Open Component Model operations on project'
inputs:
action:
description: 'action to execute'
required: true
gen:
description: 'generation directory'
required: false
default: gen/ocm
component:
description: 'component name'
required: false
version:
description: 'component version'
required: false
version_cmd:
description: 'command used to extract actual version'
required: false
version_file:
description: 'file to lookup the actual version'
required: false
directory:
description: 'directory to store component information'
required: false
provider:
description: 'provider name'
required: false
ctf:
description: 'ctf file path'
required: false
default: 'gen/ocm/ctf'
var_values:
description: 'variable values (in yaml syntax) passed to templater'
required: false
resources:
description: 'resource specification'
required: false
references:
description: 'reference specification'
required: false
components:
description: 'component specification'
required: false
settings:
description: 'settings file for resource add commands'
required: false
templater:
description: 'Templater used for processing input files'
required: false
comprepo_url:
description: component repository base url
required: false
comprepo_user:
description: component repository user
required: false
comprepo_password:
description: component repository password
required: false
force_push:
description: push a ctf to target location even if it exists
required: false
outputs:
component-name:
description: 'component name'
component-version:
description: 'component version'
component-path:
description: 'component path'
transport-archive:
description: 'transport archive path'
branding:
color: 'blue'
runs:
using: composite
steps:
- shell: bash
env:
ocm_gen: ${{ inputs.gen }}
ocm_settings: ${{ inputs.settings }}
ocm_var_values: ${{ inputs.var_values }}
ocm_resources: ${{ inputs.resources }}
ocm_references: ${{ inputs.references }}
ocm_components: ${{ inputs.components }}
ocm_ctf: ${{ inputs.ctf }}
ocm_component: ${{ inputs.component }}
ocm_versioncmd: ${{ inputs.version_cmd }}
ocm_versionfile: ${{ inputs.version_file }}
ocm_componentversion: ${{ inputs.version }}
ocm_provider: ${{ inputs.provider }}
ocm_componentdir: ${{ inputs.directory }}
ocm_templater: ${{ inputs.templater }}
ocm_comprepo: ${{ inputs.comprepo_url }}
ocm_comprepouser: ${{ inputs.comprepo_user }}
ocm_comprepopassword: ${{ inputs.comprepo_password }}
ocm_force: ${{ inputs.force_push }}
run: |
echo "path: ${{ github.action_path }}"
"${{ github.action_path }}/action.sh" "${{ inputs.action }}"