From 859b5ba5e9cb4e6a92a7fea04f3747c76ad1d56c Mon Sep 17 00:00:00 2001 From: Robert Sturla Date: Wed, 10 Jul 2024 18:02:04 +0100 Subject: [PATCH] Iterate over the correct array --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 186af42..2c74522 100644 --- a/action.yml +++ b/action.yml @@ -148,9 +148,9 @@ runs: IFS=' ' read -r -a tagged_compression_images_array <<< "${TAGGED_COMPRESSION_IMAGES}" IFS=' ' read -r -a compression_formats_array <<< "${COMPRESSION_FORMATS}" - for i in "${tagged_compression_images_array[@]}"; do - format="${compression_formats_array[$i]}" - tagged_compression_image="${tagged_compression_images_array[$i]}" + for image in "${compression_formats_array[@]}"; do + format="${compression_formats_array[$image]}" + tagged_compression_image="${tagged_compression_images_array[$image]}" echo "Pushing ${tagged_compression_image} with compression ${format}..." ${GITHUB_ACTION_PATH}/retry.sh ${RETRIES} podman push --compression-format "${format}" "${tagged_compression_image}"