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