mirror of
https://code.forgejo.org/forgejo/upload-artifact.git
synced 2025-05-17 04:37:48 +02:00
Add an option to specify retention period
This commit is contained in:
parent
58740802ef
commit
59018c2f85
8 changed files with 66 additions and 10 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue