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
echo '❌ Release failed due to branch mismatch: expected ${{ inputs.version }} to be released from ${{ env.RELEASE_BRANCH }}, got ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
77
77
exit 1
78
78
79
79
# For non-patch releases (A.B.C where C == 0), we expect the release to
80
-
# be triggered from the vA.x development branch or the vA.B release branch.
81
-
# This includes pre-releases (e.g. alpha, beta, rc)
80
+
# be triggered from the A.x maintenance branch or A.x development branch
82
81
- 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.DEVELOPMENT_BRANCH }}, got ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
84
+
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
86
85
exit 1
87
86
87
+
# If a non-patch release is created from its A.x development branch,
88
+
# create the A.B maintenance branch from the current one and push it
89
+
- name: "Create and push new release branch for non-patch release"
0 commit comments