Skip to content

Commit

Permalink
rootfs_utils: remove the force_overwrite keyword argument (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Aug 9, 2021
1 parent 649b5e9 commit 04d9067
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions rootfs_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ end
alpine_bootstrap(name::String; kwargs...) = alpine_bootstrap(p -> nothing, name; kwargs...)

function upload_rootfs_image(tarball_path::String;
force_overwrite::Bool,
github_repo::String,
tag_name::String,
num_retries::Int = 3)
Expand All @@ -301,7 +300,6 @@ function upload_rootfs_image(tarball_path::String;
@info("Uploading to $(github_repo)@$(tag_name)", tarball_url)
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])
for _ in 1:num_retries
p = run(cmd)
Expand Down Expand Up @@ -363,13 +361,11 @@ function upload_rootfs_image_github_actions(tarball_path::String)
throw(ErrorException(error_msg))
end

force_overwrite = false
github_repo = get_github_actions_repo()
tag_name = convert(String, m[1])::String

return upload_rootfs_image(
tarball_path;
force_overwrite,
github_repo,
tag_name,
)
Expand Down

0 comments on commit 04d9067

Please sign in to comment.