You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+100Lines changed: 100 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,106 @@ jobs:
72
72
echo '❌ Release failed due to branch mismatch: expected ${{ inputs.version }} to be released from ${{ env.RELEASE_BRANCH }}, got ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
73
73
exit 1
74
74
75
+
# For non-patch releases (A.B.C where C == 0), we expect the release to
76
+
# be triggered from the A.B maintenance branch or A.x development branch
77
+
- name: "Fail if non-patch release is created from wrong release branch"
echo '❌ Release failed due to branch mismatch: expected ${{ inputs.version }} to be released from ${{ env.RELEASE_BRANCH }} or ${{ env.DEV_BRANCH }}, got ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
81
+
exit 1
82
+
83
+
# If a non-patch release is created from its A.x development branch,
84
+
# create the A.B maintenance branch from the current one and push it
85
+
- name: "Create and push new release branch for non-patch release"
0 commit comments