mirror of
https://github.com/actions/cache.git
synced 2025-04-21 19:46:46 +00:00
v1.0.1 release binaries
This commit is contained in:
parent
0f810ad45a
commit
86dff562ab
2 changed files with 7 additions and 4 deletions
4
dist/save/index.js
vendored
4
dist/save/index.js
vendored
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue