fixed error of not getting artifact id

This commit is contained in:
miampf 2024-04-18 16:13:09 +02:00
parent bd2d68fc37
commit 45fe56d61f
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -7,6 +7,7 @@ function get_artifact_id {
artifact_id="$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
--paginate \
"/repos/edgelesssys/constellation/actions/runs/$1/artifacts" --jq ".artifacts |= map(select(.name==\"$2\")) | .artifacts[0].id" || exit 1)"
echo "$artifact_id"
}