Commitizen github action to bump and create changelog
- In your repository create a
.cz.tomlfile (you can runcz initto create it) - Create a
.github/workflows/bumpversion.yamlwith the Sample Workflow
name: Bump versionon: push: branches: - masterjobs: bump_version: if: "!startsWith(github.event.head_commit.message, 'bump:')"runs-on: ubuntu-latestname: "Bump version and create changelog with commitizen"steps: - name: Check outuses: actions/checkout@v2with: fetch-depth: 0 - name: Create bump and changeloguses: commitizen-tools/commitizen-action@masterwith: github_token: ${{secrets.GITHUB_TOKEN }}| Name | Description | Default |
|---|---|---|
github_token | Token for the repo. Can be passed in using ${{secrets.GITHUB_TOKEN }} required | - |
dry_run | Run without creating commit, output to stdout | false |
repository | Repository name to push. Default or empty value represents current github repository (${GITHUB_REPOSITORY}) | current one |
branch | Destination branch to push changes | master |
If you use secrets.GITHUB_TOKEN other actions won't be triggered. To solve that you will need a personal access token. Follow the instructions of github tutorial in order to create one