name: Bump Version on: push: branches: - master permissions: contents: write pull-requests: write jobs: run-tests: runs-on: ubuntu-latest name: "Run tests" steps: - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 - uses: actions/setup-go@v5 with: go-version: "1.22" check-latest: true - name: Run tests run: make test bump-version: if: "!startsWith(github.event.head_commit.message, 'bump:')" runs-on: ubuntu-latest name: "Bump Version" needs: run-tests steps: - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 - name: Create bump and changelog uses: commitizen-tools/commitizen-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}