mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
1 parent
3b3d86c9d5
commit
c4d56ef1a7
2 files changed
+13
-1
No files matched your search
@@ -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", [
|
||||
|
||||
Reference in new issue
Block a user