Skip to content

Commit

Permalink
Keep first occurrence of artifacts in release CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Sep 26, 2024
1 parent cc68d3f commit b2b5cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/buildkite/release/push-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ artifact() {
# shellcheck disable=SC2155
local artifact_value=$(curl -H "Authorization: Bearer $BUILDKITE_API_TOKEN" \
-X GET "https://api.buildkite.com/v2/organizations/cardano-foundation/pipelines/cardano-wallet/builds/$main_build/artifacts?per_page=100" \
| jq -r ".[] | select(.filename == \"$artifact_name\") \
| jq -r " [.[] | select(.filename == \"$artifact_name\")][0] \
| .download_url")
curl -H "Authorization: Bearer $BUILDKITE_API_TOKEN" -L \
-o "artifacts/$artifact_name" \
Expand Down

0 comments on commit b2b5cb9

Please sign in to comment.