mirror of
https://github.com/pnpm/action-setup.git
synced 2024-12-23 08:26:29 +08:00
Exit
This commit is contained in:
parent
429bc133fd
commit
fe1f80eaca
BIN
dist/index.js
vendored
BIN
dist/index.js
vendored
Binary file not shown.
|
@ -18,6 +18,7 @@ async function parsePath(pattern: string, inputName: string) {
|
||||||
const paths = await builder.glob()
|
const paths = await builder.glob()
|
||||||
if (paths.length !== 1) {
|
if (paths.length !== 1) {
|
||||||
error(`Input ${inputName} is expected to match 1 path, but it matches ${paths.length}: ${inspect(paths)}`)
|
error(`Input ${inputName} is expected to match 1 path, but it matches ${paths.length}: ${inspect(paths)}`)
|
||||||
|
throw process.exit(1)
|
||||||
}
|
}
|
||||||
return paths[0]
|
return paths[0]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user