From ca970300050685178e42329e2dfa7efe72489f77 Mon Sep 17 00:00:00 2001 From: Hector Ramos Date: Tue, 12 Dec 2017 12:40:26 -0800 Subject: [PATCH] Remove git commit status code check --- lib/publish-gh-pages.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/publish-gh-pages.js b/lib/publish-gh-pages.js index b02cbd7c76..2f242a8359 100755 --- a/lib/publish-gh-pages.js +++ b/lib/publish-gh-pages.js @@ -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);