File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments