From 0517b40852618098a0cf46c9ca3cc75001c0cee8 Mon Sep 17 00:00:00 2001 From: Hugo Haakseth Date: Sun, 5 May 2024 10:17:27 +0200 Subject: [PATCH] fix: only write hypens for string values --- moduleroot/.github/workflows/ci.yml.erb | 8 ++++++++ moduleroot/.github/workflows/release.yml.erb | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/moduleroot/.github/workflows/ci.yml.erb b/moduleroot/.github/workflows/ci.yml.erb index 91084300..e7e6addb 100644 --- a/moduleroot/.github/workflows/ci.yml.erb +++ b/moduleroot/.github/workflows/ci.yml.erb @@ -24,7 +24,11 @@ jobs: <%- if @configs['with'] -%> with: <%- @configs['with'].each do |k,v| -%> +<%- if v.is_a?(String) -%> <%= k %>: '<%= v %>' +<%- else -%> + <%= k %>: <%= v %> +<%- end -%> <%- end -%> <%- end -%> <%- else -%> @@ -32,7 +36,11 @@ jobs: <%- if @configs['with'] -%> with: <%- @configs['with'].each do |k,v| -%> +<%- if v.is_a?(String) -%> <%= k %>: '<%= v %>' +<%- else -%> + <%= k %>: <%= v %> +<%- end -%> <%- end -%> <%- end -%> <%- end -%> diff --git a/moduleroot/.github/workflows/release.yml.erb b/moduleroot/.github/workflows/release.yml.erb index f48ae376..fa86188e 100644 --- a/moduleroot/.github/workflows/release.yml.erb +++ b/moduleroot/.github/workflows/release.yml.erb @@ -16,7 +16,11 @@ jobs: with: <%- if @configs['with'] -%> <%- @configs['with'].each do |k,v| -%> +<%- if v.is_a?(String) -%> <%= k %>: '<%= v %>' +<%- else -%> + <%= k %>: <%= v %> +<%- end -%> <%- end -%> <%- end -%> <%- if @configs['with'].nil? || !@configs['with'].has_key?('allowed_owner') -%>