mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-29 22:47:52 +02:00
parent
9367b3b63b
commit
c4740f7af2
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ if (IS_PULL_REQUEST) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// When we want to do a cross repo publish (#717), we can allow publishing to the same branch.
|
// When we want to do a cross repo publish (#717), we can allow publishing to the same branch.
|
||||||
const currentRepoUrl = shell.exec('git remote get-url origin').stdout.trim();
|
const currentRepoUrl = shell
|
||||||
|
.exec('git config --get remote.origin.url')
|
||||||
|
.stdout.trim();
|
||||||
const crossRepoPublish = !currentRepoUrl.endsWith(
|
const crossRepoPublish = !currentRepoUrl.endsWith(
|
||||||
`${ORGANIZATION_NAME}/${PROJECT_NAME}.git`
|
`${ORGANIZATION_NAME}/${PROJECT_NAME}.git`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue