mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
fix: 🐛 Fixes an issue where informational messages are throwing errors (#1168)
This commit is contained in:
parent
1dfbc4c37b
commit
331dd26e8d
@ -308,9 +308,10 @@ export async function deploy(action: ActionInterface): Promise<Status> {
|
|||||||
|
|
||||||
if (rejected) info('Updates were rejected')
|
if (rejected) info('Updates were rejected')
|
||||||
|
|
||||||
// If the push failed for any reason other than being rejected,
|
// If the push failed for any fatal reason other than being rejected,
|
||||||
// there is a problem
|
// there is a problem
|
||||||
if (!rejected && pushResult.stderr) throw new Error(pushResult.stderr)
|
if (!rejected && pushResult.stderr.startsWith('fatal:'))
|
||||||
|
throw new Error(pushResult.stderr)
|
||||||
} while (rejected)
|
} while (rejected)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user