Skip to content

Commit

Permalink
build: update distribution (#1216)
Browse files Browse the repository at this point in the history
Co-authored-by: peter-evans <peter-evans@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and peter-evans authored Aug 18, 2022
1 parent 2721abb commit 18f9043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName
}
const commitResult = yield git.commit(popts, true);
// 'nothing to commit' can occur when core.autocrlf is set to true
if (commitResult.exitCode != 0 && !commitResult.stdout.includes(NOTHING_TO_COMMIT)) {
if (commitResult.exitCode != 0 &&
!commitResult.stdout.includes(NOTHING_TO_COMMIT)) {
throw new Error(`Unexpected error: ${commitResult.stderr}`);
}
}
Expand Down

0 comments on commit 18f9043

Please sign in to comment.