Skip to content

Commit e230636

Browse files
committed
fix: changelog commits logic
1 parent 2801079 commit e230636

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/changelog.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ jobs:
2020
repository: "Govcraft/rust-docs-mcp-server"
2121
ref: ${{ github.head_ref }}
2222
- name: Generate changelog
23-
run: ./git-chglog -o CHANGELOG.md
23+
run: |
24+
git switch -c changelog-update
25+
./git-chglog -o CHANGELOG.md
2426
2527
- name: Check in CHANGELOG
2628
run: |
29+
# merge the changelog-update branch into the main branch
2730
git config user.name "github-actions[bot]"
2831
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
2932
git add './CHANGELOG.md'
3033
git commit -m "chore(docs): update CHANGELOG for latest tag"
34+
git checkout main
35+
git merge changelog-update --no-ff -m "chore(docs): update CHANGELOG for latest tag"
3136
git push

0 commit comments

Comments
 (0)