mirror of
https://code.forgejo.org/pnpm/action-setup.git
synced 2025-05-16 20:14:45 +00:00
Exit
This commit is contained in:
parent
429bc133fd
commit
fe1f80eaca
2 changed files with 2 additions and 1 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -18,6 +18,7 @@ async function parsePath(pattern: string, inputName: string) {
|
|||
const paths = await builder.glob()
|
||||
if (paths.length !== 1) {
|
||||
error(`Input ${inputName} is expected to match 1 path, but it matches ${paths.length}: ${inspect(paths)}`)
|
||||
throw process.exit(1)
|
||||
}
|
||||
return paths[0]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue