update-changelog.yml 688 B

12345678910111213141516171819202122232425262728293031
  1. name: "Update Changelog"
  2. on:
  3. release:
  4. types: [released]
  5. jobs:
  6. update:
  7. runs-on: ubuntu-latest
  8. permissions:
  9. contents: write
  10. steps:
  11. - name: Checkout code
  12. uses: actions/checkout@v3
  13. with:
  14. ref: main
  15. - name: Update Changelog
  16. uses: stefanzweifel/changelog-updater-action@v1
  17. with:
  18. latest-version: ${{ github.event.release.tag_name }}
  19. release-notes: ${{ github.event.release.body }}
  20. - name: Commit updated CHANGELOG
  21. uses: stefanzweifel/git-auto-commit-action@v4
  22. with:
  23. branch: main
  24. commit_message: Update CHANGELOG
  25. file_pattern: CHANGELOG.md