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'); shell.exec('git add --all');
if ( shell.exec(
shell.exec( `git commit -m "Deploy website" -m "Deploy website version based on ${
`git commit -m "Deploy website" -m "Deploy website version based on ${ currentCommit
currentCommit }"`
}"` );
).code !== 0
) {
shell.echo(`Error: Committing static website failed`);
shell.exit(1);
}
if (shell.exec(`git push origin ${DEPLOYMENT_BRANCH}`).code !== 0) { if (shell.exec(`git push origin ${DEPLOYMENT_BRANCH}`).code !== 0) {
shell.echo('Error: Git push failed'); shell.echo('Error: Git push failed');
shell.exit(1); shell.exit(1);