mirror of
				https://github.com/actions/upload-artifact.git
				synced 2025-10-23 08:56:38 +08: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