mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-17 02:56:57 +02:00
Remove git commit status code check
This commit is contained in:
parent
e655ac0f37
commit
ca97030005
1 changed files with 5 additions and 10 deletions
|
@ -135,16 +135,11 @@ const currentCommit = shell.exec('git rev-parse HEAD').stdout.trim();
|
|||
|
||||
shell.exec('git add --all');
|
||||
|
||||
if (
|
||||
shell.exec(
|
||||
`git commit -m "Deploy website" -m "Deploy website version based on ${
|
||||
currentCommit
|
||||
}"`
|
||||
).code !== 0
|
||||
) {
|
||||
shell.echo(`Error: Committing static website failed`);
|
||||
shell.exit(1);
|
||||
}
|
||||
shell.exec(
|
||||
`git commit -m "Deploy website" -m "Deploy website version based on ${
|
||||
currentCommit
|
||||
}"`
|
||||
);
|
||||
if (shell.exec(`git push origin ${DEPLOYMENT_BRANCH}`).code !== 0) {
|
||||
shell.echo('Error: Git push failed');
|
||||
shell.exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue