From 5f096cab2dc45041d7d42dc986c7de346e22bf06 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Sat, 17 Feb 2024 20:10:45 +0900 Subject: [PATCH] Updated building images workflow --- .github/workflows/images_build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/images_build.yml b/.github/workflows/images_build.yml index a18538d04..84a269205 100644 --- a/.github/workflows/images_build.yml +++ b/.github/workflows/images_build.yml @@ -337,11 +337,13 @@ jobs: echo "${cache_to[*]}" echo "::endgroup::" - cache_from=$(printf '%s\n' "${cache_from[@]}" | jq -R . | jq -s --compact-output .) - cache_to=$(printf '%s\n' "${cache_to[@]}" | jq -R . | jq -s --compact-output .) + cache_from=$(printf '"%s",' "${cache_from[@]}") + cache_from="${cache_from%,}" + cache_to=$(printf '"%s",' "${cache_to[@]}") + cache_to="${cache_to%,}" - echo "cache_from=\"$cache_from\"" >> $GITHUB_OUTPUT - echo "cache_to=\"$cache_to\"" >> $GITHUB_OUTPUT + echo "cache_from=$cache_from" >> $GITHUB_OUTPUT + echo "cache_to=$cache_to" >> $GITHUB_OUTPUT - name: Build and publish image id: docker_build