build: update distribution (#1216)

Co-authored-by: peter-evans <peter-evans@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2022-08-18 17:29:42 +09:00 committed by GitHub
parent 2721abb4d0
commit 18f90432be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
dist/index.js vendored
View file

@ -141,7 +141,8 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName
} }
const commitResult = yield git.commit(popts, true); const commitResult = yield git.commit(popts, true);
// 'nothing to commit' can occur when core.autocrlf is set to 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}`); throw new Error(`Unexpected error: ${commitResult.stderr}`);
} }
} }