Skip to content

Commit 315fe56

Browse files
authored
Merge pull request #91 from sentry-demos/kw-fix-release-merge
fix: Missing branches for merge and push to master
2 parents bf7ca86 + b672ce2 commit 315fe56

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060

6161
publish-release:
6262
name: 'Publish Release'
63-
needs: [bump-version, build-android, build-ios]
63+
needs: [bump-version, build-android]
6464
runs-on: ubuntu-latest
6565
env:
6666
MERGE_TARGET: master
@@ -71,7 +71,7 @@ jobs:
7171
7272
- uses: actions/checkout@v4
7373
with:
74-
ref: ${{ env.MERGE_TARGET }}
74+
fetch-depth: 0 # fetch all history all branches and tags
7575

7676
- name: Download iOS App
7777
uses: actions/download-artifact@v4
@@ -100,6 +100,9 @@ jobs:
100100
101101
- name: Merge Release
102102
run: |
103-
git merge release/${{ env.VERSION }} \
104-
&& git push origin ${{ env.MERGE_TARGET }} \
105-
|| gh pr create --title "Merge Release ${{ env.VERSION }}" --body "Merge of the release ${{ env.VERSION }} into ${{ env.MERGE_TARGET }} failed. Please it merge manually."
103+
git reset --hard
104+
git checkout release/${{ env.VERSION }}
105+
git checkout ${{ env.MERGE_TARGET }}
106+
git merge release/${{ env.VERSION }} --no-ff
107+
git push origin ${{ env.MERGE_TARGET }}
108+
git push origin --delete release/${{ env.VERSION }}

0 commit comments

Comments
 (0)