Skip to content

Commit 57b3ab0

Browse files
Introduce puppetcore api type
Signed-off-by: Gavin Didrichsen <[email protected]>
1 parent d15a267 commit 57b3ab0

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/module_ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# This is a generic workflow for Puppet module CI operations.
22
name: "Module CI"
33

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 }}"
104

115
on:
126
workflow_call:
@@ -31,6 +25,18 @@ on:
3125
required: false
3226
default: '2.7'
3327
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 }}"
3440

3541
jobs:
3642
setup_matrix:

0 commit comments

Comments
 (0)