1
0
Fork 0

fix(multi-semantic-release): simplify images list processing on the template & workflow code.
All checks were successful
multi-semantic-release / multi-semantic-release (push) Successful in 32s

This commit is contained in:
Sergio Talens-Oliag 2025-03-17 19:12:57 +01:00
parent fad2cbc26e
commit d347a17b75
Signed by: sto
GPG key ID: 821AEE0FD167FBDF
2 changed files with 2 additions and 7 deletions

View file

@ -1,7 +1,3 @@
{{- $paths_list := list -}}
{{- range get . "images" -}}
{{- $paths_list = append $paths_list .path -}}
{{- end -}}
{
"name": "multi-semantic-release",
"version": "0.0.0-semantically-released",
@ -9,5 +5,5 @@
"multi-release": {
"tagFormat": "${name}-v${version}"
},
"workspaces": {{ $paths_list | toJson }}
"workspaces": {{ .images | toJson }}
}

View file

@ -24,8 +24,7 @@ jobs:
package_json_values_yaml=".package.json-values.yaml"
echo "images:" >"$package_json_values_yaml"
for img in $images; do
echo " - name: $img" >>"$package_json_values_yaml"
echo " path: $img" >>"$package_json_values_yaml"
echo " - $img" >>"$package_json_values_yaml";
done
echo "::group::Generated values.yaml for the project"
cat "$package_json_values_yaml"