File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments