mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
refactor: log files if commit files to branch fails
This commit is contained in:
parent
27d0626b62
commit
d258c3849e
1 changed files with 9 additions and 4 deletions
|
@ -1014,10 +1014,15 @@ async function commitFilesToBranch(
|
||||||
gitPrivateKey
|
gitPrivateKey
|
||||||
);
|
);
|
||||||
const isBranchExisting = await branchExists(branchName);
|
const isBranchExisting = await branchExists(branchName);
|
||||||
if (isBranchExisting) {
|
try {
|
||||||
await updateBranch(branchName, commit);
|
if (isBranchExisting) {
|
||||||
} else {
|
await updateBranch(branchName, commit);
|
||||||
await createBranch(branchName, commit);
|
} else {
|
||||||
|
await createBranch(branchName, commit);
|
||||||
|
}
|
||||||
|
} catch (err) /* istanbul ignore next */ {
|
||||||
|
logger.debug({ files });
|
||||||
|
throw err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue