Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle quotes at start of image name #12

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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