Skip to content

Commit 45eca6f

Browse files
committed
update
1 parent c2efac8 commit 45eca6f

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/pr-build-test.yaml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,19 +254,16 @@ jobs:
254254
STATUS_ICON="✅"
255255
SUCCESS_COUNT=$((SUCCESS_COUNT + 1))
256256
if [ -n "$ghcr_url" ] && [ "$ghcr_url" != "null" ] && [ "$ghcr_url" != "" ]; then
257-
# Convert ghcr.io URL to GitHub packages URL
258-
# ghcr.io/owner/repo/path:tag -> github.com/owner/repo/pkgs/container/path
259-
PKG_PATH=$(echo "$ghcr_url" | sed 's|ghcr.io/||' | cut -d':' -f1)
260-
# URL encode forward slashes after the repo name
261-
OWNER=$(echo "$PKG_PATH" | cut -d'/' -f1)
262-
REPO=$(echo "$PKG_PATH" | cut -d'/' -f2)
263-
CONTAINER_PATH=$(echo "$PKG_PATH" | cut -d'/' -f3- | sed 's|/|%2F|g')
264-
GITHUB_PKG_URL="https://github.com/${OWNER}/${REPO}/pkgs/container/${CONTAINER_PATH}"
265-
PKG_LINK="[📦 View](${GITHUB_PKG_URL})"
257+
# Show GHCR URLs directly (more useful for pulling)
258+
PKG_COUNT=$(echo "$ghcr_url" | tr ',' '\n' | wc -l)
259+
if [ "$PKG_COUNT" -gt 1 ]; then
260+
# Multiple packages - show as code block with all URLs
261+
PKG_LINK=$(echo "$ghcr_url" | tr ',' '\n' | sed 's/^/`/; s/$/`/' | tr '\n' ' ')
262+
else
263+
PKG_LINK="\`${ghcr_url}\`"
264+
fi
266265
else
267-
# Fallback: construct URL from recipe info
268-
GITHUB_PKG_URL="https://github.com/${REPO_OWNER}/${CACHE_TYPE}/pkgs/container/${pkg_family}%2F${recipe_name}"
269-
PKG_LINK="[📦 View](${GITHUB_PKG_URL})"
266+
PKG_LINK="-"
270267
fi
271268
;;
272269
failure)

0 commit comments

Comments
 (0)