| 1 | name: Bump version |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | |
| 8 | jobs: |
| 9 | bump-version: |
| 10 | if: "!startsWith(github.event.head_commit.message, 'bump:')" |
| 11 | runs-on: ubuntu-latest |
| 12 | name: "Bump version and create changelog with commitizen" |
| 13 | steps: |
| 14 | - name: Check out |
| 15 | uses: actions/checkout@v3 |
| 16 | with: |
| 17 | fetch-depth: 0 |
| 18 | token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
| 19 | - name: Create bump and changelog |
| 20 | uses: commitizen-tools/commitizen-action@master |
| 21 | with: |
| 22 | github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |