Skip to content

Commit 5ebeec8

Browse files
authored
Update branch name from master to main in GH action workflow (#1516)
JAVA-5608
1 parent d4a2072 commit 5ebeec8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ jobs:
7878
exit 1
7979
8080
# For non-patch releases (A.B.C where C == 0), we expect the release to
81-
# be triggered from master or the A.B.x maintenance branch. This includes
81+
# be triggered from main or the A.B.x maintenance branch. This includes
8282
# pre-releases for any non-patch releases, e.g. 5.2.0-beta1
8383
- name: "Fail if non-patch release is created from wrong release branch"
84-
if: ${{ endsWith(env.RELEASE_VERSION_WITHOUT_SUFFIX, '.0') && env.RELEASE_BRANCH != github.ref_name && github.ref_name != 'master' }}
84+
if: ${{ endsWith(env.RELEASE_VERSION_WITHOUT_SUFFIX, '.0') && env.RELEASE_BRANCH != github.ref_name && github.ref_name != 'main' }}
8585
run: |
86-
echo '❌ Release failed due to branch mismatch: expected ${{ inputs.version }} to be released from ${{ env.RELEASE_BRANCH }} or master, got ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
86+
echo '❌ Release failed due to branch mismatch: expected ${{ inputs.version }} to be released from ${{ env.RELEASE_BRANCH }} or main, got ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
8787
exit 1
8888
8989
# Set commit author information to the user that triggered the release workflow

0 commit comments

Comments
 (0)