Skip to content

Commit

Permalink
ci: always create out_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
trombik committed Nov 12, 2024
1 parent 6fd74d6 commit 18a10b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/download_artifact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def sh(*args)
results[artifact["name"]] = artifact
end

FileUtils.mkdir_p(out_dir)
results.each do |k, v|
url = octokit.artifact_download_url(owner_repo, v.id)
zipfile = "#{out_dir}/#{v['name']}.zip"
puts format("Downloading %s", zipfile)
FileUtils.mkdir_p(out_dir)
sh "curl", "--output", "#{zipfile}", "#{url}"
sh "unzip", "-o", "#{zipfile}", "-d", "#{out_dir}"
sh "rm", "-f", "#{zipfile}"
Expand Down

0 comments on commit 18a10b3

Please sign in to comment.