changelog.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Changelog
  2. run-name: "Changelog for ${{ github.ref }} by @${{ github.ACTOR }}"
  3. on:
  4. push:
  5. tags:
  6. - "v*.*.*"
  7. workflow_dispatch:
  8. # tags:
  9. # - "v*.*.*"
  10. # release:
  11. # types:
  12. # - created
  13. permissions:
  14. contents: write
  15. packages: write
  16. jobs:
  17. release:
  18. runs-on: "ubuntu-latest"
  19. steps:
  20. - name: Checkout
  21. uses: actions/checkout@v3
  22. with:
  23. fetch-depth: 0
  24. fetch-tags: true
  25. - name: "✏️ Generate release changelog"
  26. uses: heinrichreimer/github-changelog-generator-action@v2.3
  27. with:
  28. token: ${{ secrets.FLIPPER_TOKEN }}
  29. user: ${{ github.repository_owner }}
  30. repo: ${{ github.repository }}
  31. output: CHANGELOG.md
  32. unreleased: false
  33. stripGeneratorNotice: true
  34. - name: "Show CHANGELOG.md"
  35. run: cat CHANGELOG.md
  36. - name: "Commit changes"
  37. uses: stefanzweifel/git-auto-commit-action@v4
  38. with:
  39. commit_message: "docs: update `CHANGELOG.md`"
  40. file_pattern: "*.md"
  41. branch: ${{ github.ref_name }}
  42. commit_options: '--no-verify --signoff'
  43. # skip_dirty_check: true
  44. # skip_checkout: true
  45. # skip_fetch: true