Skip to content

Commit

Permalink
CI (rootfs images): fix a bug in the upload_rootfs_image function (#…
Browse files Browse the repository at this point in the history
…41610)

(cherry picked from commit e1aeb8a)
  • Loading branch information
DilumAluthge authored and KristofferC committed Jul 20, 2021
1 parent 1bd94a2 commit cc13ed5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .buildkite/rootfs_images/rootfs_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ function upload_rootfs_image(tarball_path::String;
# Upload it to `github_repo`
tarball_url = "https://github.com/$(github_repo)/releases/download/$(tag_name)/$(basename(tarball_path))"
@info("Uploading to $(github_repo)@$(tag_name)", tarball_url)
replace_flag = force_overwrite ? "-replace" : ""
run(`$(ghr_jll.ghr()) -u $(dirname(github_repo)) -r $(basename(github_repo)) $(replace_flag) $(tag_name) $(tarball_path)`)
cmd = ghr_jll.ghr()
append!(cmd.exec, ["-u", dirname(github_repo), "-r", basename(github_repo)])
force_overwrite && push!(cmd.exec, "-replace")
append!(cmd.exec, [tag_name, tarball_path])
run(cmd)
return tarball_url
end

Expand Down

0 comments on commit cc13ed5

Please sign in to comment.