We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a22643e commit 95f6d12Copy full SHA for 95f6d12
.github/workflows/pull-request.yml
@@ -34,7 +34,11 @@ jobs:
34
"$API_URL")
35
36
### extract latest nuget pkg version
37
- LATEST_VERSION=$(echo "$VERSIONS_JSON" | jq -r '.[0].name // "0.0.0"')
+ if echo "$VERSIONS_JSON" | jq . >/dev/null 2>&1; then
38
+ LATEST_VERSION=$(echo "$VERSIONS_JSON" | jq -r 'try (.[0].name) catch "0.0.0"')
39
+ else
40
+ LATEST_VERSION="0.0.0"
41
+ fi
42
43
echo "Latest NuGet package version found: $LATEST_VERSION"
44
echo "version=$LATEST_VERSION" >> $GITHUB_OUTPUT
0 commit comments