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:
parent
3b3d86c9d5
commit
c4d56ef1a7
1
.github/workflows/daily-alpha.yml
vendored
1
.github/workflows/daily-alpha.yml
vendored
@ -35,4 +35,5 @@ jobs:
|
||||
env:
|
||||
BUMP_PACKAGE_ARGS: -- --conventional-commits --conventional-prerelease --yes
|
||||
PICK_ALL_PRS: "true"
|
||||
FAIL_ON_NO_CHANGES: "false"
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
@ -173,7 +173,18 @@ async function createReleaseBranchAndCommit(prBase: string, version: SemVer, prB
|
||||
|
||||
await pipeExecFile("git", ["checkout", "-b", prBranch]);
|
||||
await pipeExecFile("git", ["add", "."]);
|
||||
|
||||
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", [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user