mirror of
https://code.forgejo.org/actions/upload-artifact
synced 2025-07-01 06:46:05 +02:00
Exclude hidden files by default backport
This commit is contained in:
parent
a8a3f3ad30
commit
afc7e4a27d
8 changed files with 178 additions and 69 deletions
|
@ -11,6 +11,7 @@ export function getInputs(): UploadInputs {
|
|||
|
||||
const ifNoFilesFound = core.getInput(Inputs.IfNoFilesFound)
|
||||
const noFileBehavior: NoFileOptions = NoFileOptions[ifNoFilesFound]
|
||||
const includeHiddenFiles = core.getBooleanInput(Inputs.IncludeHiddenFiles)
|
||||
|
||||
if (!noFileBehavior) {
|
||||
core.setFailed(
|
||||
|
@ -25,7 +26,8 @@ export function getInputs(): UploadInputs {
|
|||
const inputs = {
|
||||
artifactName: name,
|
||||
searchPath: path,
|
||||
ifNoFilesFound: noFileBehavior
|
||||
ifNoFilesFound: noFileBehavior,
|
||||
includeHiddenFiles
|
||||
} as UploadInputs
|
||||
|
||||
const retentionDaysStr = core.getInput(Inputs.RetentionDays)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue