Skip to content

Commit

Permalink
Use arithmetic operators in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 committed Jul 10, 2024
1 parent d922d79 commit a25985e
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 image in "${tagged_compression_images_array[@]}"; do
format="${compression_formats_array[$image]}"
tagged_compression_image="${tagged_compression_images_array[$image]}"
for i in "${tagged_compression_images_array[@]}"; do
format="${compression_formats_array[$i]}"
tagged_compression_image="${tagged_compression_images_array[$i]}"
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 a25985e

Please sign in to comment.