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:
parent
694cdabd8b
commit
8d531b15a6
13 changed files with 4169 additions and 1508 deletions
33
src/upload/upload-inputs.ts
Normal file
33
src/upload/upload-inputs.ts
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue