Skip to content

Commit

Permalink
Fix script to choose only one artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Jan 9, 2025
1 parent e740f23 commit e968e62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ get_specific_artifact_url_with_retries() {
-s https://api.github.com/repos/eyaldelarea/jfrog-cli/actions/artifacts)

# Parse the response to find the URL of the desired artifact
if ! artifactUrl=$(echo "$response" | jq -r ".artifacts[] | select(.name | contains(\"$cliExecutableName-darwin-v$releaseVersion-$goarch\")) | .archive_download_url"); then
if ! artifactUrl=$(echo "$response" | jq -r "first(.artifacts[] | select(.name | contains(\"$cliExecutableName-darwin-v$releaseVersion-$goarch\")) | .archive_download_url)"); then
artifactUrl=""
fi

Expand Down

0 comments on commit e968e62

Please sign in to comment.