1
0
Fork 0
mirror of https://code.forgejo.org/actions/upload-artifact synced 2025-06-18 08:46:05 +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

26
src/upload/constants.ts Normal file
View file

@ -0,0 +1,26 @@
/* eslint-disable no-unused-vars */
export enum Inputs {
Name = 'name',
Path = 'path',
IfNoFilesFound = 'if-no-files-found',
RetentionDays = 'retention-days',
CompressionLevel = 'compression-level',
Overwrite = 'overwrite'
}
export enum NoFileOptions {
/**
* Default. Output a warning but do not fail the action
*/
warn = 'warn',
/**
* Fail the action with an error message
*/
error = 'error',
/**
* Do not output any warnings or errors, the action does not fail
*/
ignore = 'ignore'
}