File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
# This is a generic workflow for Puppet module CI operations.
2
2
name : " Module CI"
3
3
4
- # ENABLE PUPPETCORE. The calling workflow must:
5
- # - Set a valid PUPPET_FORGE_TOKEN secret on its repository.
6
- # - Set ruby_version >= 3.1 to override this workflow's default 2.7; otherwise bundle install will fail.
7
- env :
8
- PUPPET_FORGE_TOKEN : ${{ secrets.PUPPET_FORGE_TOKEN }}
9
- BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM : " forge-key:${{ secrets.PUPPET_FORGE_TOKEN }}"
10
4
11
5
on :
12
6
workflow_call :
31
25
required : false
32
26
default : ' 2.7'
33
27
type : " string"
28
+ puppetcore_api_type :
29
+ description : " The type of API to use for Puppet Core."
30
+ required : false
31
+ default : ' forge-key'
32
+ type : " string"
33
+
34
+ # ENABLE PUPPETCORE. The calling workflow must:
35
+ # - Set a valid PUPPET_FORGE_TOKEN secret on its repository.
36
+ # - Set ruby_version >= 3.1 to override this workflow's default 2.7; otherwise bundle install will fail.
37
+ env :
38
+ PUPPET_FORGE_TOKEN : ${{ secrets.PUPPET_FORGE_TOKEN }}
39
+ BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM : " ${{ inputs.puppetcore_api_type }}:${{ secrets.PUPPET_FORGE_TOKEN }}"
34
40
35
41
jobs :
36
42
setup_matrix :
You can’t perform that action at this time.
0 commit comments