File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 32
32
BOLT_GEM : true
33
33
BOLT_DISABLE_ANALYTICS : true
34
34
LANG : en_US.UTF-8
35
+ PUPPET_FORGE_TOKEN : ${{ secrets.PUPPET_FORGE_API_TOKEN }}
36
+ BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM : forge-key:${{ secrets.PUPPET_FORGE_API_TOKEN }}
35
37
strategy :
36
38
fail-fast : false
37
39
matrix :
Original file line number Diff line number Diff line change 55
55
puppet_version = ENV [ 'PUPPET_GEM_VERSION' ]
56
56
facter_version = ENV [ 'FACTER_GEM_VERSION' ]
57
57
hiera_version = ENV [ 'HIERA_GEM_VERSION' ]
58
+ bolt_version = ENV . fetch ( 'BOLT_GEM_VERSION' , nil )
58
59
59
60
gems = { }
60
61
Original file line number Diff line number Diff line change 6
6
function peadm::assert_supported_bolt_version (
7
7
# No arguments
8
8
) >> Struct[{ ' supported' => Boolean }] {
9
- $supported_bolt_version = ' >= 3.17.0 < 5.0.0'
9
+ $supported_bolt_version = ' >= 3.17.0 < 6.0.0'
10
+ $current_bolt_version = peadm::bolt_version()
10
11
$supported = (peadm::bolt_version() =~ SemVerRange($supported_bolt_version ))
12
+ out::message(" Bolt version: ${current_bolt_version} " )
11
13
# lint:ignore:strict_indent
12
14
unless $supported {
13
15
fail(@(" REASON" /L))
14
16
This version of puppetlabs-peadm requires Bolt version ${supported_bolt_version} .
15
17
16
- You are using Bolt version ${peadm::bolt_version() }.
18
+ You are using Bolt version ${current_bolt_version } .
17
19
18
20
Please make sure you have a compatible Bolt version and try again.
19
21
You can’t perform that action at this time.
0 commit comments