mirror of
https://github.com/actions/upload-artifact.git
synced 2025-06-17 08:57:13 +02:00
Add an option to specify retention period
This commit is contained in:
@ -40,6 +40,10 @@ async function run(): Promise<void> {
|
||||
const options: UploadOptions = {
|
||||
continueOnError: false
|
||||
}
|
||||
if (inputs.retentionDays) {
|
||||
options.retentionDays = inputs.retentionDays
|
||||
}
|
||||
|
||||
const uploadResponse = await artifactClient.uploadArtifact(
|
||||
inputs.artifactName,
|
||||
searchResult.filesToUpload,
|
||||
|
Reference in New Issue
Block a user