Skip to content

Commit

Permalink
fixed error of not getting artifact id
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Apr 18, 2024
1 parent 8b5aea8 commit 128ce56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/artifact_delete/delete_artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 128ce56

Please sign in to comment.