mirror of
https://github.com/actions/cache.git
synced 2026-10-01 00:51:42 +00:00
v1.0.1 release binaries
This commit is contained in:
1 parent
0f810ad45a
commit
86dff562ab
2 files changed
+7
-4
No files matched your search
Vendored
+2
-2
@@ -2889,11 +2889,11 @@ function run() {
|
||||
const tarPath = yield io.which("tar", true);
|
||||
core.debug(`Tar Path: ${tarPath}`);
|
||||
yield exec_1.exec(`"${tarPath}"`, args);
|
||||
const fileSizeLimit = 200 * 1024 * 1024; // 200MB
|
||||
const fileSizeLimit = 400 * 1024 * 1024; // 400MB
|
||||
const archiveFileSize = fs.statSync(archivePath).size;
|
||||
core.debug(`File Size: ${archiveFileSize}`);
|
||||
if (archiveFileSize > fileSizeLimit) {
|
||||
core.warning(`Cache size of ${archiveFileSize} bytes is over the 200MB limit, not saving cache.`);
|
||||
core.warning(`Cache size of ${archiveFileSize} bytes is over the 400MB limit, not saving cache.`);
|
||||
return;
|
||||
}
|
||||
const stream = fs.createReadStream(archivePath);
|
||||
|
||||
Reference in new issue
Block a user