Skip to content

Commit d7e6332

Browse files
committed
ifix: fix release to main sync by using --no-edit instead of --ff-only
1 parent 37b3f2e commit d7e6332

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,13 @@ jobs:
6060
HUSKY: 0
6161

6262
- name: Sync release to main
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
6365
run: |
64-
git config --global user.name "github-actions[bot]"
65-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
66+
git config user.name "github-actions[bot]"
67+
git config user.email "github-actions[bot]@users.noreply.github.com"
68+
git fetch origin release
6669
git fetch origin main
6770
git checkout main
68-
git merge origin/release --ff-only
69-
git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }}.git main
71+
git merge origin/release --no-edit
72+
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git main

0 commit comments

Comments
 (0)