From 97ac9394b7bcc74e6717943572f8c673f4d4061c Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Mon, 30 Oct 2023 15:09:52 -0700 Subject: [PATCH] add support for arbitrary `with` values for beaker.yml workflow Example `.sync.yml` snippet: .github/workflows/ci.yml: with: hosts: master,replica,client --- moduleroot/.github/workflows/ci.yml.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moduleroot/.github/workflows/ci.yml.erb b/moduleroot/.github/workflows/ci.yml.erb index 6bc1ef09..841a94b4 100644 --- a/moduleroot/.github/workflows/ci.yml.erb +++ b/moduleroot/.github/workflows/ci.yml.erb @@ -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'] %>'