mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 23:36:29 -04:00
fixed error of not getting artifact id
This commit is contained in:
parent
bd2d68fc37
commit
45fe56d61f
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user