mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 04:12:53 +02:00
throw error when forgot to pass in GIT_USER (#1035)
This commit is contained in:
parent
f22aa221f2
commit
287c4872fe
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue