mirror of
https://gitea.com/actions/gitea-upload-artifact.git
synced 2025-06-19 22:27:13 +02:00
Check for invalid retention-days input
This commit is contained in:
@ -31,6 +31,9 @@ export function getInputs(): UploadInputs {
|
||||
const retentionDaysStr = core.getInput(Inputs.RetentionDays)
|
||||
if (retentionDaysStr) {
|
||||
inputs.retentionDays = parseInt(retentionDaysStr)
|
||||
if (isNaN(inputs.retentionDays)) {
|
||||
core.setFailed('Invalid retention-days')
|
||||
}
|
||||
}
|
||||
|
||||
return inputs
|
||||
|
Reference in New Issue
Block a user