Merge pull request #15553 from carlocab/s/cp/ln

github_packages: create hard link instead of copying
This commit is contained in:
Mike McQuaid 2023-06-19 13:32:04 +01:00 committed by GitHub
commit 6763d11954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -458,7 +458,7 @@ class GitHubPackages
def write_tar_gz(local_file, blobs)
tar_gz_sha256 = Digest::SHA256.file(local_file)
.hexdigest
FileUtils.cp local_file, blobs/tar_gz_sha256
FileUtils.ln local_file, blobs/tar_gz_sha256
tar_gz_sha256
end