changelog.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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@v4
  22. with:
  23. fetch-depth: 0
  24. fetch-tags: true
  25. - name: "✏️ Generate release changelog"
  26. uses: heinrichreimer/github-changelog-generator-action@v2.4
  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. verbose: true
  35. - name: "Show CHANGELOG.md"
  36. run: cat CHANGELOG.md
  37. # - name: "Commit changes"
  38. # uses: stefanzweifel/git-auto-commit-action@v4
  39. # with:
  40. # commit_message: "docs: update `CHANGELOG.md`"
  41. # file_pattern: "*.md"
  42. # branch: ${{ github.ref_name }}
  43. # commit_options: '--no-verify --signoff'
  44. # # skip_dirty_check: true
  45. # # skip_checkout: true
  46. # # skip_fetch: true