mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
fix: Trims
This commit is contained in:
parent
331dd26e8d
commit
ccec05930a
@ -310,7 +310,7 @@ export async function deploy(action: ActionInterface): Promise<Status> {
|
||||
|
||||
// If the push failed for any fatal reason other than being rejected,
|
||||
// there is a problem
|
||||
if (!rejected && pushResult.stderr.startsWith('fatal:'))
|
||||
if (!rejected && pushResult.stderr.trim().startsWith('fatal:'))
|
||||
throw new Error(pushResult.stderr)
|
||||
} while (rejected)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user