mirror of
https://github.com/ChristopherHX/gitea-upload-artifact.git
synced 2025-12-14 05:43:56 +00: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