Skip to content

Commit 1ddfc69

Browse files
committed
add persistent changelog.md in rust/main
1 parent f080453 commit 1ddfc69

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/rust-release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,21 @@ jobs:
189189
[ "$IS_PRERELEASE" = "true" ] && echo "This is marked as a pre-release on GitHub." >> $GITHUB_STEP_SUMMARY
190190
echo "" >> $GITHUB_STEP_SUMMARY
191191
echo "Binary artifacts will be built automatically by the agent-release-artifacts workflow." >> $GITHUB_STEP_SUMMARY
192+
- name: Update CHANGELOG.md
193+
if: steps.check_version.outputs.should_release == true
194+
working-directory: ./rust/main
195+
env:
196+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
197+
run: |
198+
# Generate full changelog from all tags
199+
git-cliff --config cliff.toml --tag-pattern "agents-v*" -o CHANGELOG.md
200+
201+
# Commit and push the updated changelog
202+
git add CHANGELOG.md
203+
if git diff --staged --quiet; then
204+
echo "No changes to CHANGELOG.md"
205+
else
206+
git commit -m "chore: update CHANGELOG.md for $(git describe --tags --abbrev=0)"
207+
git push origin main
208+
echo "CHANGELOG.md updated and pushed to main" >> $GITHUB_STEP_SUMMARY
209+
fi

0 commit comments

Comments
 (0)