Skip to content

Commit 812656d

Browse files
authored
Update release.yml
1 parent be4eae0 commit 812656d

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,9 @@ jobs:
9090
- name: 🛠️ Upload library to NuGet.org repository
9191
run: echo "TODO"
9292

93-
- name: ⏩ Merge stable with main, push both
94-
run: |
95-
git push origin stable
96-
git checkout main
97-
git merge -S stable
98-
git push origin main
99-
93+
- name: ⏩ Push stable branch
94+
run: git push origin stable
95+
10096
- name: 🛠️ Create GitHub release
10197
uses: thomaseizinger/[email protected]
10298
env:
@@ -108,3 +104,24 @@ jobs:
108104
body: ${{ steps.changelog_reader.outputs.changes }}
109105
draft: false
110106
prerelease: ${{ env.NBGV_PublicRelease == 'False' }}
107+
108+
- name: ⏩ Merge stable with main, push main
109+
run: |
110+
git checkout main
111+
git merge -S stable
112+
git push origin main
113+
114+
- name: ⏭ Create pull request from stable to main
115+
if: ${{ failure() }}
116+
uses: thomaseizinger/[email protected]
117+
env:
118+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119+
with:
120+
head: stable
121+
base: main
122+
title: Update main with changes in stable after v${{ env.SIMPLE_VERSION }} release
123+
reviewers: ${{ github.actor }} # By default, we request a review from the person who triggered the workflow.
124+
body: |
125+
Hi @${{ github.actor }}
126+
127+
This PR was created because the [release workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) failed to automatically merge stable into main.

0 commit comments

Comments
 (0)