Skip to content

Commit b5ba342

Browse files
authored
Merge pull request #153 from puppetlabs/MODULES-11624
(MODULES-11624) Add step to install packages
2 parents f48b89e + 259c943 commit b5ba342

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/module_ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
required: false
2525
default: '3.1'
2626
type: "string"
27+
additional_packages:
28+
description: "Space-separated list of OS packages to install on the runner (apt-get)"
29+
required: false
30+
default: ''
31+
type: "string"
2732

2833
# ENABLE PUPPETCORE. The calling workflow must:
2934
# - Set a valid PUPPET_FORGE_TOKEN secret on its repository.
@@ -49,6 +54,10 @@ jobs:
4954
with:
5055
ref: ${{ github.event.pull_request.head.sha }}
5156

57+
- name: "Install additional packages"
58+
if: ${{ inputs.additional_packages != '' }}
59+
run: sudo apt-get install -y ${{ inputs.additional_packages }}
60+
5261
- name: "Setup ruby"
5362
uses: "ruby/setup-ruby@v1"
5463
with:
@@ -85,6 +94,10 @@ jobs:
8594
with:
8695
ref: ${{ github.event.pull_request.head.sha }}
8796

97+
- name: "Install additional packages"
98+
if: ${{ inputs.additional_packages != '' }}
99+
run: sudo apt-get install -y ${{ inputs.additional_packages }}
100+
88101
- name: "Setup ruby"
89102
uses: "ruby/setup-ruby@v1"
90103
with:

0 commit comments

Comments
 (0)