mirror of
https://gitea.com/actions/upload-artifact.git
synced 2025-04-22 08:45:33 +08:00
Cleanup
This commit is contained in:
parent
b62552503d
commit
9a0e0d1dc0
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -6375,7 +6375,7 @@ function getInputs() {
|
|||||||
const ifNoFilesFound = core.getInput(constants_1.Inputs.IfNoFilesFound);
|
const ifNoFilesFound = core.getInput(constants_1.Inputs.IfNoFilesFound);
|
||||||
const noFileBehavior = constants_1.NoFileOptions[ifNoFilesFound];
|
const noFileBehavior = constants_1.NoFileOptions[ifNoFilesFound];
|
||||||
if (!noFileBehavior) {
|
if (!noFileBehavior) {
|
||||||
core.setFailed(`Unrecognized if-no-files-found input. Provided ${ifNoFilesFound}. Available options include ${Object.keys(constants_1.NoFileOptions)}`);
|
core.setFailed(`Unrecognized if-no-files-found input. Provided ${ifNoFilesFound}. Available options: ${Object.keys(constants_1.NoFileOptions)}`);
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
artifactName: name,
|
artifactName: name,
|
||||||
|
@ -14,7 +14,7 @@ export function getInputs(): UploadInputs {
|
|||||||
|
|
||||||
if (!noFileBehavior) {
|
if (!noFileBehavior) {
|
||||||
core.setFailed(
|
core.setFailed(
|
||||||
`Unrecognized if-no-files-found input. Provided ${ifNoFilesFound}. Available options include ${Object.keys(
|
`Unrecognized if-no-files-found input. Provided ${ifNoFilesFound}. Available options: ${Object.keys(
|
||||||
NoFileOptions
|
NoFileOptions
|
||||||
)}`
|
)}`
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user