Updates for Changelog auto-generation

pull/10125/head
Ivor Z 9 months ago
parent 27836d34fa
commit 0ac42c2c05
  1. 9
      .github/workflows/publish.yml
  2. 2
      docs/en/Changelog.md

@ -103,6 +103,15 @@ jobs:
fi
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
echo "PR_TITLE=$PR_TITLE" >> $GITHUB_ENV
- name: Update Changelog
run: |
CHANGELOG="docs/en/Changelog.md"
echo -e "## Version ${{ steps.check_pypi.outputs.version }}\n{{RELEASE NOTES}}\n\n$(cat $CHANGELOG)" > $CHANGELOG
git config --global user.name "Glenn Jocher"
git config --global user.email "glenn.jocher@ultralytics.com"
git add $CHANGELOG
git commit -m "Update Changelog for version ${{ steps.check_pypi.outputs.version }}"
git push
- name: Notify on Slack (Success)
if: success() && github.event_name == 'push' && steps.check_pypi.outputs.increment == 'True'
uses: slackapi/slack-github-action@v1.25.0

@ -0,0 +1,2 @@
# Changelog
All notable changes to this project will be documented in this file.
Loading…
Cancel
Save