From 85f53d046a04700d2a2f71b5bbb7c5e11c6cb9a8 Mon Sep 17 00:00:00 2001 From: Antony Messerli Date: Thu, 12 Jun 2025 01:35:08 -0500 Subject: [PATCH] Fix tag selection logic in release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace alphabetical tag selection with version-aware filtering to properly identify the latest nbxyz version tag instead of selecting SHA hashes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9ca7cc..742dd00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: TAG=$(curl -s --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \ --header "Authorization: Bearer ${TOKEN}" \ "https://ghcr.io/v2/${IMAGE}/tags/list?n=1000" \ - | jq -r '.tags[-1]') + | jq -r '.tags[] | select(test("^[0-9]+\\.[0-9]+\\.[0-9]+-nbxyz[0-9]+$"))' | sort -V | tail -1) echo LATEST_TAG: $TAG MULTIDIGEST=$(curl -s \ --header "Accept: application/vnd.oci.image.index.v1+json" \