Skip to content

Commit

Permalink
handle quotes at start of image name (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron <561860+wallies@users.noreply.github.com>
  • Loading branch information
wallies committed Jan 4, 2024
1 parent 4298e53 commit 2f8a699
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,15 @@ runs:
echo "Skipping local registry image ${images2[i]}"
continue
fi
images2[i]=${images2[i]#\'}
echo "Processing ${images2[i]} in file $file"
updated_digest=
crane digest "${images2[i]}" > digest.log 2> logerror.txt
if [ $? -eq 0 ]; then
updated_digest=$(cat digest.log)
else
ERRMSG="Failed to retrive digest info for ${images2[i]}"
ERRMSG="Failed to retrieve digest info for ${images2[i]}"
echo "${ERRMSG}"
echo "${ERRMSG}" >> "$GITHUB_STEP_SUMMARY"
cat logerror.txt >> "$GITHUB_STEP_SUMMARY"
Expand Down

0 comments on commit 2f8a699

Please sign in to comment.