Skip to content

Commit

Permalink
Fall back empty versions to "not set"
Browse files Browse the repository at this point in the history
This way they will trigger the warning comment
  • Loading branch information
oliverguenther committed Sep 10, 2024
1 parent c0b1ae4 commit 2cf65af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/ci/version_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if [ "$HTTP_STATUS" -ne 200 ]; then
exit 0
fi

VERSION_FROM_API=$(jq -r '._links.version.title // empty' response.json)
VERSION_FROM_API=$(jq -r '._links.version.title // "not set"' response.json)
if [ -z "$VERSION_FROM_API" ]; then
echo "::warning::Failed to extract version from API response."
exit 0
Expand Down

0 comments on commit 2cf65af

Please sign in to comment.