1
0
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:
Sebastian Malton 2023-05-08 15:43:49 -04:00
parent 3b3d86c9d5
commit c4d56ef1a7
2 changed files with 13 additions and 1 deletions

View File

@ -35,4 +35,5 @@ jobs:
env: env:
BUMP_PACKAGE_ARGS: -- --conventional-commits --conventional-prerelease --yes BUMP_PACKAGE_ARGS: -- --conventional-commits --conventional-prerelease --yes
PICK_ALL_PRS: "true" PICK_ALL_PRS: "true"
FAIL_ON_NO_CHANGES: "false"
GH_TOKEN: ${{ secrets.GH_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }}

View File

@ -173,7 +173,18 @@ async function createReleaseBranchAndCommit(prBase: string, version: SemVer, prB
await pipeExecFile("git", ["checkout", "-b", prBranch]); await pipeExecFile("git", ["checkout", "-b", prBranch]);
await pipeExecFile("git", ["add", "."]); await pipeExecFile("git", ["add", "."]);
try {
await pipeExecFile("git", ["commit", "-sm", `Release ${version.format()}`]); 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("git", ["push", "--set-upstream", "origin", prBranch]);
await pipeExecFile("gh", [ await pipeExecFile("gh", [