Skip to content

Commit

Permalink
Iterate over the correct array
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 committed Jul 10, 2024
1 parent a25985e commit 859b5ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 859b5ba

Please sign in to comment.