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 Oct 30, 2023
1 parent 7c3fc7c commit 75a9497
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 @@ -16,6 +16,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 75a9497

Please sign in to comment.