Skip to content

Commit 0e77dc7

Browse files
committed
Force-push major version branch in case it exists
1 parent ed46c11 commit 0e77dc7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release.main.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ workflow(
111111
command = """
112112
git branch -D "$majorVersionExpr" || true
113113
git checkout -b "$majorVersionExpr"
114-
git push origin "$majorVersionExpr"
114+
git push origin "$majorVersionExpr" -f
115115
""".trimIndent()
116116
)
117117

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
run: |-
7272
git branch -D "${{ steps.step-8.outputs.majorVersion }}" || true
7373
git checkout -b "${{ steps.step-8.outputs.majorVersion }}"
74-
git push origin "${{ steps.step-8.outputs.majorVersion }}"
74+
git push origin "${{ steps.step-8.outputs.majorVersion }}" -f
7575
- id: 'step-10'
7676
name: 'Delete temp branch'
7777
run: 'git push origin --delete temp-branch-for-release'

0 commit comments

Comments
 (0)