wrong url check

This commit is contained in:
Vittorio Parrella 2023-06-13 08:03:40 +02:00
parent 10b9e67b5c
commit ee65baa49c
No known key found for this signature in database
GPG Key ID: 78598F812AE11022
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ jobs:
ID=$(curl -s -XGET "https://api.github.com/repos/${GH_REPO_API}/actions/workflows/linux.yml/runs" | jq .workflow_runs[0].id)
fi
URL=$(curl -s -XGET "https://api.github.com/repos/${GH_REPO_API}/actions/runs/$ID/artifacts" | jq -r ".artifacts[] | select(.name==\"${TYPE}_\") | .archive_download_url")
if [[ "$URL" -eq "0" ]]; then
if [[ "$URL" -eq "" ]]; then
printf "Could not find artifact for ${TYPE} in run ${ID}"
exit 1
fi