Skip to content

Commit 4713b55

Browse files
committed
Remove rebase in git pull
1 parent 2195d6c commit 4713b55

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
schedule:
55
- cron: "0 8 * * 1" # At 08:00 on Monday.
6-
workflow_dispatch:
6+
workflow_dispatch: # Allows manual triggering
77

88
jobs:
99
update:
@@ -14,6 +14,9 @@ jobs:
1414
steps:
1515
- name: Check out repository
1616
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0 # Fetch all history so we can access tags and commits
19+
fetch-tags: true # Ensure tags are fetched
1720

1821
- name: Install pnpm
1922
uses: pnpm/action-setup@v4
@@ -61,10 +64,10 @@ jobs:
6164
run: |
6265
git config user.name "GitHub Actions"
6366
git config user.email "[email protected]"
64-
git pull --rebase
6567
git add .
6668
git commit -m "${{ steps.script.outputs.release-name }}"
67-
git push
69+
# Push changes, handling potential conflicts
70+
git push || git pull --rebase origin ${{ github.ref_name }} && git push
6871
6972
- name: Create release
7073
id: release

0 commit comments

Comments
 (0)