Skip to content

Commit 6d7b196

Browse files
authored
Update release.yml
1 parent a16adab commit 6d7b196

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,15 @@ jobs:
104104
body: ${{ steps.changelog_reader.outputs.changes }}
105105
draft: false
106106
prerelease: ${{ env.NBGV_PublicRelease == 'False' }}
107-
108-
- name: ☑ Check if merge of stable to main is possible
109-
continue-on-error: true
110-
run: |
111-
git checkout main
112-
echo "MERGE_CONFLICT_STATUS=CONFLICT" >> $GITHUB_ENV
113-
git merge --no-commit --no-ff stable
114-
echo "MERGE_CONFLICT_STATUS=OK" >> $GITHUB_ENV
115-
107+
116108
- name: ⏩ Merge stable with main, push main
117-
if: env.MERGE_CONFLICT_STATUS == 'OK'
118109
run: |
119110
git merge --abort
120111
git merge -S stable
121112
git push origin main
122113
123-
- name: ⏭ Create pull request from stable to main
124-
if: env.MERGE_CONFLICT_STATUS == 'CONFLICT'
114+
- name: ⏭ Create pull request from stable to main when direct merge fails
115+
if: ${{ failure() }}
125116
uses: thomaseizinger/[email protected]
126117
env:
127118
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)