Skip to content

Commit

Permalink
build: update distribution (peter-evans#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
2 people authored and aleksandrychev committed Mar 4, 2024
1 parent 58be3b9 commit f2338cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/index.js
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 f2338cd

Please sign in to comment.