1
0
Fork 0
mirror of https://code.forgejo.org/actions/upload-artifact synced 2025-06-11 05:42:25 +02:00

reorganize upload code in prep for merge logic, add more tests

This commit is contained in:
Rob Herley 2024-01-22 15:49:34 -05:00
parent 694cdabd8b
commit 8d531b15a6
No known key found for this signature in database
GPG key ID: D1602042C3543B06
13 changed files with 4169 additions and 1508 deletions

View file

@ -0,0 +1,33 @@
import {NoFileOptions} from './constants'
export interface UploadInputs {
/**
* The name of the artifact that will be uploaded
*/
artifactName: string
/**
* The search path used to describe what to upload as part of the artifact
*/
searchPath: string
/**
* The desired behavior if no files are found with the provided search path
*/
ifNoFilesFound: NoFileOptions
/**
* Duration after which artifact will expire in days
*/
retentionDays: number
/**
* The level of compression for Zlib to be applied to the artifact archive.
*/
compressionLevel?: number
/**
* Whether or not to replace an existing artifact with the same name
*/
overwrite: boolean
}