File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,12 +239,21 @@ jobs:
239239
240240 # Extract recipe path from URL
241241 recipe_path=$(echo "$recipe_url" | grep -oE '(binaries|packages)/[^"]+\.yaml' || echo "unknown")
242+ pkg_family=$(echo "$recipe_path" | cut -d'/' -f2)
243+ recipe_name=$(basename "$recipe_path" .yaml 2>/dev/null || echo "unknown")
244+
245+ # Determine cache type from path
246+ if echo "$recipe_path" | grep -q "^packages/"; then
247+ CACHE_TYPE="pkgcache"
248+ else
249+ CACHE_TYPE="bincache"
250+ fi
242251
243252 case "$status" in
244253 success)
245254 STATUS_ICON="✅"
246255 SUCCESS_COUNT=$((SUCCESS_COUNT + 1))
247- if [ -n "$ghcr_url" ] && [ "$ghcr_url" != "null" ]; then
256+ if [ -n "$ghcr_url" ] && [ "$ghcr_url" != "null" ] && [ "$ghcr_url" != "" ] ; then
248257 # Convert ghcr.io URL to GitHub packages URL
249258 # ghcr.io/owner/repo/path:tag -> github.com/owner/repo/pkgs/container/path
250259 PKG_PATH=$(echo "$ghcr_url" | sed 's|ghcr.io/||' | cut -d':' -f1)
@@ -255,7 +264,9 @@ jobs:
255264 GITHUB_PKG_URL="https://github.com/${OWNER}/${REPO}/pkgs/container/${CONTAINER_PATH}"
256265 PKG_LINK="[📦 View](${GITHUB_PKG_URL})"
257266 else
258- PKG_LINK="-"
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})"
259270 fi
260271 ;;
261272 failure)
You can’t perform that action at this time.
0 commit comments