Skip to content

Commit f84ca89

Browse files
committed
fix(ci): 🐛 correct tag comparison logic in GHCR image check
1 parent c37299d commit f84ca89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-missing-images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ jobs:
4242
echo "Existing GHCR tags: $ghcr_tags"
4343
4444
while IFS= read -r tag; do
45-
if ! grep -q "^${tag}$" <<< "$ghcr_tags"; then
45+
if ! grep -qx "${tag#v}" <<< "$ghcr_tags"; then
4646
echo "Image missing for $tag"
4747
missing_tags+=("$tag")
4848
fi
4949
done <<< "${{ steps.list_tags.outputs.tags }}"
5050
51+
# Output missing tags correctly to GITHUB_OUTPUT
5152
{
52-
printf "%s\n" "${missing_tags[@]}"
5353
echo "missing_tags<<EOF"
5454
printf "%s\n" "${missing_tags[@]}"
5555
echo "EOF"

0 commit comments

Comments
 (0)