build: update distribution (#1216)
Co-authored-by: peter-evans <peter-evans@users.noreply.github.com>
This commit is contained in:
parent
2721abb4d0
commit
18f90432be
1 changed files with 2 additions and 1 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue