Skip to content

Commit

Permalink
Update deployer.js
Browse files Browse the repository at this point in the history
Signed-off-by: Mimi <1119186082@qq.com>
  • Loading branch information
stevenjoezhang committed Apr 14, 2024
1 parent b2a9ec4 commit d8a79b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ module.exports = function(args) {
async function push(repo) {
await setNameEmail();
await git('add', '-A');
try {
await git('commit', '-m', message);
} catch {
await git('commit', '-m', message).catch(() => {
// Do nothing. It's OK if nothing to commit.
}
});
await git('push', '-u', repo.url, 'HEAD:' + repo.branch, '--force');
}

Expand Down

0 comments on commit d8a79b5

Please sign in to comment.