bumpversion.yml 755 B

123456789101112131415161718192021222324252627
  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@v3
  14. with:
  15. fetch-depth: 0
  16. token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
  17. - id: cz
  18. name: Create bump and changelog
  19. uses: commitizen-tools/commitizen-action@master
  20. with:
  21. extra_requirements: commitizen-emoji
  22. github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
  23. debug: true
  24. - name: Print Version
  25. run: echo "Bumped to version ${{ steps.cz.outputs.version }}"