mirror of
https://github.com/actions/upload-artifact.git
synced 2026-11-06 11:00:52 +00:00
Add an option to specify retention period
This commit is contained in:
1 parent
58740802ef
commit
59018c2f85
8 files changed
+66
-10
No files matched your search
@@ -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