Skip to content

Commit f42723d

Browse files
Grep ruby version string instead of matrix.ruby
We cannot interpolate matrix.ruby within the matrix definition itself.
1 parent e09af69 commit f42723d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ jobs:
1616
- puppet_version: '8'
1717
ruby: '3.1'
1818

19+
- ruby: '2.7'
20+
extra_steps: |
21+
if [[ $(ruby -v | grep 'ruby 2.7') ]]; then
22+
gem install multi_json -v 1.15.0
23+
fi
1924
- os: 'ubuntu-latest'
2025
os_type: 'Linux'
2126
env_set_cmd: 'export '
2227
gem_file: 'puppet-latest.gem'
23-
extra_steps: |
24-
if [[ ${{ matrix.ruby }} == "2.7" ]]; then
25-
gem install multi_json -v 1.15.0
26-
fi
2728
- os: 'macos-latest'
2829
os_type: 'macOS'
2930
env_set_cmd: 'export '

0 commit comments

Comments
 (0)