Skip to content

Commit 601bf21

Browse files
committed
fix: checkout HEAD first
1 parent 1f8c6f5 commit 601bf21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
fetch-tags: true
1515
fetch-depth: 0
1616
repository: "Govcraft/rust-docs-mcp-server"
17+
- run: git checkout HEAD^
1718

1819
- name: Install gitchglog
1920
run: |
@@ -27,7 +28,6 @@ jobs:
2728
run: |
2829
git config user.name "github-actions[bot]"
2930
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
30-
git checkout main
3131
git add './CHANGELOG.md'
3232
git commit -m "chore(docs): update CHANGELOG for latest tag"
33-
git push origin main
33+
git push origin HEAD:main

0 commit comments

Comments
 (0)