File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -109,18 +109,19 @@ jobs:
109109 continue-on-error : true
110110 run : |
111111 git checkout main
112+ echo "MERGE_CONFLICT_STATUS=CONFLICT" >> $GITHUB_ENV
112113 git merge --no-commit --no-ff stable
113- echo "CAN_MERGE=true " >> $GITHUB_ENV
114+ echo "MERGE_CONFLICT_STATUS=OK " >> $GITHUB_ENV
114115
115116 - name : ⏩ Merge stable with main, push main
116- if : env.CAN_MERGE == "true"
117+ if : env.MERGE_CONFLICT_STATUS == 'OK'
117118 run : |
118119 git merge --abort
119120 git merge -S stable
120121 git push origin main
121122
122123 - name : ⏭ Create pull request from stable to main
123- if : env.CAN_MERGE != "true"
124+ if : env.MERGE_CONFLICT_STATUS == 'CONFLICT'
124125 uses :
thomaseizinger/[email protected] 125126 env :
126127 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments