mirror of
https://github.com/actions/upload-artifact.git
synced 2025-06-20 18:17:57 +02:00
Add an option to specify retention period
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user