Skip to content

Commit

Permalink
Add a warning for when we can't respect requested retention.
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtverstehen committed Mar 14, 2024
1 parent 1a0a67e commit 03eed12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/upload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126145,6 +126145,9 @@ function run() {
if (inputs.retentionDays) {
options.retentionDays = inputs.retentionDays;
}
if (inputs.retentionDays && inputs.retentionDays != 30) {
core.warning(`Namespace artifacts storage retains objects for 30 days. retentionDays=${inputs.retentionDays} will not be honored.`);
}
if (typeof inputs.compressionLevel !== 'undefined') {
options.compressionLevel = inputs.compressionLevel;
}
Expand Down
5 changes: 5 additions & 0 deletions src/upload/upload-artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ export async function run(): Promise<void> {
if (inputs.retentionDays) {
options.retentionDays = inputs.retentionDays
}
if (inputs.retentionDays && inputs.retentionDays != 30) {
core.warning(
`Namespace artifacts storage retains objects for 30 days. retentionDays=${inputs.retentionDays} will not be honored.`
)
}

if (typeof inputs.compressionLevel !== 'undefined') {
options.compressionLevel = inputs.compressionLevel
Expand Down

0 comments on commit 03eed12

Please sign in to comment.