Remove git commit status code check

This commit is contained in:
Hector Ramos 2017-12-12 12:40:26 -08:00
parent e655ac0f37
commit ca97030005

View file

@ -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);