Skip to content

Commit

Permalink
add support for arbitrary with values for beaker.yml workflow
Browse files Browse the repository at this point in the history
Example `.sync.yml` snippet:

    .github/workflows/ci.yml:
       with:
         hosts: master,replica,client
  • Loading branch information
jhoblitt committed Feb 12, 2024
1 parent 9eb170b commit 97ac939
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions moduleroot/.github/workflows/ci.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
<%- if @configs['acceptance_tests'] && Dir[File.join(@metadata[:workdir], 'spec', 'acceptance', '**', '*_spec.rb')].any? -%>
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v2
with:
<%- if @configs['with'] -%>
<%= @configs['with'].to_yaml.split("\n")[1..-1].join.gsub(/^/, ' ' * 6) %>
<%- end -%>
pidfile_workaround: '<%= @configs['pidfile_workaround'] %>'
<%- if @configs['unit_runs_on'] -%>
unit_runs_on: '<%= @configs['unit_runs_on'] %>'
Expand Down

0 comments on commit 97ac939

Please sign in to comment.