Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 646ae53

Browse files
committed
Add a retention period of 7 days
For debug artifacts. Ensures they don't stick around too long since these can be large.
1 parent 3b54300 commit 646ae53

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

lib/debug-artifacts.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/debug-artifacts.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/debug-artifacts.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ export async function uploadDebugArtifacts(
4949
sanitizeArifactName(`${artifactName}${suffix}`),
5050
toUpload.map((file) => path.normalize(file)),
5151
path.normalize(rootDir),
52-
{ continueOnError: true },
52+
{
53+
continueOnError: true,
54+
// ensure we don't keep the debug artifacts around for too long since they can be large.
55+
retentionDays: 7,
56+
},
5357
);
5458
}
5559

0 commit comments

Comments
 (0)