Merge pull request #15553 from carlocab/s/cp/ln
github_packages: create hard link instead of copying
This commit is contained in:
commit
6763d11954
@ -458,7 +458,7 @@ class GitHubPackages
|
|||||||
def write_tar_gz(local_file, blobs)
|
def write_tar_gz(local_file, blobs)
|
||||||
tar_gz_sha256 = Digest::SHA256.file(local_file)
|
tar_gz_sha256 = Digest::SHA256.file(local_file)
|
||||||
.hexdigest
|
.hexdigest
|
||||||
FileUtils.cp local_file, blobs/tar_gz_sha256
|
FileUtils.ln local_file, blobs/tar_gz_sha256
|
||||||
tar_gz_sha256
|
tar_gz_sha256
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user