fix(ci): update draft release query to use tagName instead of url (#3349)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-10-04 20:26:37 -05:00 committed by GitHub
parent dcbf664f38
commit ab18e99bd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ jobs:
echo "Searching for draft releases with '$BASE_VERSION' in their name."
DRAFT_RELEASES=$(gh release list --json name,isDraft,url --limit 100 | jq -r --arg ver "$BASE_VERSION" '.[] | select(.isDraft == true and (.name | contains($ver))) | .url')
DRAFT_RELEASES=$(gh release list --json name,isDraft,tagName --limit 100 | jq -r --arg ver "$BASE_VERSION" '.[] | select(.isDraft == true and (.name | contains($ver))) | .tagName')
if [ -z "$DRAFT_RELEASES" ]; then
echo "No draft releases found with '$BASE_VERSION' in their name."