chore: Don't fail daily alpha workflow when there is nothing to release

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-05-09 10:10:30 -04:00
1 parent 3b3d86c9d5
commit c4d56ef1a7
2 files changed
+13 -1

No files matched your search

+12 -1
View File
@@ -173,7 +173,18 @@ async function createReleaseBranchAndCommit(prBase: string, version: SemVer, prB
await pipeExecFile("git", ["checkout", "-b", prBranch]);
await pipeExecFile("git", ["add", "."]);
await pipeExecFile("git", ["commit", "-sm", `Release ${version.format()}`]);
try {
await pipeExecFile("git", ["commit", "-sm", `Release ${version.format()}`]);
} catch (error) {
if (process.env.FAIL_ON_NO_CHANGES === "false") {
console.log("No changes to commit");
return;
}
throw error;
}
await pipeExecFile("git", ["push", "--set-upstream", "origin", prBranch]);
await pipeExecFile("gh", [