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}"