Skip to content

Commit

Permalink
fixup: even more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
h-haaks committed May 8, 2024
1 parent 0517b40 commit 71b96a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions moduleroot/.github/workflows/ci.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,9 @@ jobs:
name: Puppet
<%- if @configs['acceptance_tests'] && Dir[File.join(@metadata[:workdir], 'spec', 'acceptance', '**', '*_spec.rb')].any? -%>
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v2
<%- if @configs['with'] -%>
with:
<%- @configs['with'].each do |k,v| -%>
<%- if v.is_a?(String) -%>
<%= k %>: '<%= v %>'
<%- else -%>
<%= k %>: <%= v %>
<%- end -%>
<%- end -%>
<%- end -%>
<%- else -%>
uses: voxpupuli/gha-puppet/.github/workflows/basic.yml@v2
<%- end -%>
<%- if @configs['with'] -%>
with:
<%- @configs['with'].each do |k,v| -%>
Expand All @@ -43,4 +34,3 @@ jobs:
<%- end -%>
<%- end -%>
<%- end -%>
<%- end -%>
2 changes: 1 addition & 1 deletion moduleroot/.github/workflows/release.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
<%- end -%>
<%- end -%>
<%- end -%>
<%- if @configs['with'].nil? || !@configs['with'].has_key?('allowed_owner') -%>
<%- unless @configs['with']&.has_key?('allowed_owner') -%>
allowed_owner: '<%= @configs[:namespace] %>'
<%- end -%>
secrets:
Expand Down

0 comments on commit 71b96a7

Please sign in to comment.