From b2b5cb9e19bb91358b98f42673f5678847dc330e Mon Sep 17 00:00:00 2001 From: paolino Date: Thu, 26 Sep 2024 08:38:31 +0000 Subject: [PATCH] Keep first occurrence of artifacts in release CI jobs --- scripts/buildkite/release/push-artifacts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/buildkite/release/push-artifacts.sh b/scripts/buildkite/release/push-artifacts.sh index 675e1695fff..048c98518f3 100755 --- a/scripts/buildkite/release/push-artifacts.sh +++ b/scripts/buildkite/release/push-artifacts.sh @@ -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" \