1
0
Fork 0
mirror of https://code.forgejo.org/actions/upload-artifact synced 2025-06-10 05:12:20 +02:00

add merge artifact sub-action

This commit is contained in:
Rob Herley 2024-01-22 21:46:12 -05:00
parent 52899c8c02
commit 997fffa355
No known key found for this signature in database
GPG key ID: D1602042C3543B06
11 changed files with 1100 additions and 61 deletions

33
src/merge/merge-inputs.ts Normal file
View file

@ -0,0 +1,33 @@
export interface MergeInputs {
/**
* The name of the artifact that the artifacts will be merged into
*/
name: string
/**
* A glob pattern matching the artifacts that should be merged.
*/
pattern: string
/**
* 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
/**
* If true, the artifacts that were merged will be deleted.
* If false, the artifacts will still exist.
*/
deleteMerged: boolean
/**
* If true, the artifacts will be merged into separate directories.
* If false, the artifacts will be merged into the root of the destination.
*/
separateDirectories: boolean
}