bumpversion.yml 767 B

12345678910111213141516171819202122232425262728
  1. name: Bump version
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. bump_version:
  8. if: "!startsWith(github.event.head_commit.message, 'bump:')"
  9. runs-on: ubuntu-latest
  10. name: "Bump version and create changelog with commitizen"
  11. steps:
  12. - name: Check out
  13. uses: actions/checkout@v4
  14. with:
  15. lfs: true
  16. fetch-depth: 0
  17. token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
  18. - id: cz
  19. name: Create bump and changelog
  20. uses: commitizen-tools/commitizen-action@master
  21. with:
  22. extra_requirements: cz-emoji
  23. github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
  24. debug: true
  25. - name: Print Version
  26. run: echo "Bumped to version ${{ steps.cz.outputs.version }}"