Skip to content

Commit 03eed12

Browse files
Add a warning for when we can't respect requested retention.
1 parent 1a0a67e commit 03eed12

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dist/upload/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -126145,6 +126145,9 @@ function run() {
126145126145
if (inputs.retentionDays) {
126146126146
options.retentionDays = inputs.retentionDays;
126147126147
}
126148+
if (inputs.retentionDays && inputs.retentionDays != 30) {
126149+
core.warning(`Namespace artifacts storage retains objects for 30 days. retentionDays=${inputs.retentionDays} will not be honored.`);
126150+
}
126148126151
if (typeof inputs.compressionLevel !== 'undefined') {
126149126152
options.compressionLevel = inputs.compressionLevel;
126150126153
}

src/upload/upload-artifact.ts

+5
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ export async function run(): Promise<void> {
6262
if (inputs.retentionDays) {
6363
options.retentionDays = inputs.retentionDays
6464
}
65+
if (inputs.retentionDays && inputs.retentionDays != 30) {
66+
core.warning(
67+
`Namespace artifacts storage retains objects for 30 days. retentionDays=${inputs.retentionDays} will not be honored.`
68+
)
69+
}
6570

6671
if (typeof inputs.compressionLevel !== 'undefined') {
6772
options.compressionLevel = inputs.compressionLevel

0 commit comments

Comments
 (0)