mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-28 12:33:10 +00:00
throw error when forgot to pass in GIT_USER (#1035)
This commit is contained in:
parent
f22aa221f2
commit
287c4872fe
|
|
@ -54,6 +54,13 @@ if (!PROJECT_NAME) {
|
|||
shell.exit(0);
|
||||
}
|
||||
|
||||
if (USE_SSH !== 'true' && !GIT_USER) {
|
||||
shell.echo(
|
||||
"Missing git user. Did you forget to export the 'GIT_USER' environment variable?",
|
||||
);
|
||||
shell.exit(0);
|
||||
}
|
||||
|
||||
let remoteBranch;
|
||||
if (USE_SSH === 'true') {
|
||||
remoteBranch = `git@${GITHUB_HOST}:${ORGANIZATION_NAME}/${PROJECT_NAME}.git`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue