mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-03 02:27:01 +00:00
fix: handle existing release branch in beta-release workflow (#6696)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: louislam <1336778+louislam@users.noreply.github.com> Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
This commit is contained in:
3
.github/workflows/beta-release.yml
vendored
3
.github/workflows/beta-release.yml
vendored
@@ -42,7 +42,10 @@ jobs:
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
# Delete local release branch if it exists
|
||||
git branch -D release || true
|
||||
git checkout -b release
|
||||
git push origin release --force
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm clean-install --no-fund
|
||||
|
||||
@@ -307,7 +307,7 @@ export async function createDistTarGz() {
|
||||
export async function createReleasePR(version, previousVersion, dryRun) {
|
||||
const changelog = await generateChangelog(previousVersion);
|
||||
|
||||
const title = dryRun ? `build: update to ${version} (dry run)` : `build: update to ${version}`;
|
||||
const title = dryRun ? `chore: update to ${version} (dry run)` : `chore: update to ${version}`;
|
||||
const body = `## Release ${version}
|
||||
|
||||
This PR prepares the release for version ${version}.
|
||||
|
||||
Reference in New Issue
Block a user