Skip to content

Commit 85f53d0

Browse files
antonymclaude
andcommitted
Fix tag selection logic in release workflow
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 <[email protected]>
1 parent 83032a8 commit 85f53d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
TAG=$(curl -s --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
5555
--header "Authorization: Bearer ${TOKEN}" \
5656
"https://ghcr.io/v2/${IMAGE}/tags/list?n=1000" \
57-
| jq -r '.tags[-1]')
57+
| jq -r '.tags[] | select(test("^[0-9]+\\.[0-9]+\\.[0-9]+-nbxyz[0-9]+$"))' | sort -V | tail -1)
5858
echo LATEST_TAG: $TAG
5959
MULTIDIGEST=$(curl -s \
6060
--header "Accept: application/vnd.oci.image.index.v1+json" \

0 commit comments

Comments
 (0)