mirror of
https://code.forgejo.org/actions/upload-artifact.git
synced 2025-05-12 10:09:17 -04:00
Add an option to specify retention period
This commit is contained in:
parent
58740802ef
commit
59018c2f85
8 changed files with 66 additions and 10 deletions
|
@ -22,9 +22,16 @@ export function getInputs(): UploadInputs {
|
|||
)
|
||||
}
|
||||
|
||||
return {
|
||||
const inputs = {
|
||||
artifactName: name,
|
||||
searchPath: path,
|
||||
ifNoFilesFound: noFileBehavior
|
||||
} as UploadInputs
|
||||
|
||||
const retentionDaysStr = core.getInput(Inputs.RetentionDays)
|
||||
if (retentionDaysStr) {
|
||||
inputs.retentionDays = parseInt(retentionDaysStr)
|
||||
}
|
||||
|
||||
return inputs
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue