mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Update util.ts
This commit is contained in:
parent
7044d02ab5
commit
14e664afd2
@ -52,7 +52,7 @@ export const hasRequiredParameters = (action: ActionInterface): void => {
|
||||
)
|
||||
}
|
||||
|
||||
if (!existsSync(action.folder)) {
|
||||
if (!existsSync(action.folder) && action.folder !== action.root) {
|
||||
throw new Error(
|
||||
`The ${action.folder} directory you're trying to deploy doesn't exist. ❗`
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user