Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

setup-cz

This workflow sets up the commitizen CLI for use in your GitHub workflows. Unlike commitizen-action, this workflow only installs the CLI. It does not automatically bump, commit or push changes. This workflow, instead, gives more flexibility to the user by letting them use the full range of commitizen commands.

Usage

jobs:
bump:
runs-on: ubuntu-latestpermissions:
contents: writeactions: writesteps:
- uses: actions/checkout@v6with:
fetch-depth: 0fetch-tags: true
- uses: commitizen-tools/setup-cz@mainwith:
python-version: "3.x"
- run: | cz version -p cz bump --yes --annotated-tag git push --follow-tags

Inputs

InputDescriptionDefaultRequired
versionVersion of commitizen to installlatestno
extra-requirementsInstall extra dependenciesn/ano
extra_requirementsDEPRECATED, use extra-requirements instead. Install extra dependenciesn/ano
python-versionVersion range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset. Passed directly to setup-pythonn/ano
set-git-configSet git configtrueno
git-user-nameGit user namegithub-actions[bot]no
git-user-emailGit user email41898282+github-actions[bot]@users.noreply.github.comno

Outputs

None

Troubleshooting

A ruleset is blocking the release

You have 2 options:

  1. Create a Github App (recommended)
  2. Create a Personal Access Token (PAT)

A PAT is associated to your personal account, while the Github App is like a bot. Whichever you choose, you'll have to add it to the exemption list in the ruleset.

For the Github App, you can find the instructions to create one in Registering a Github App and a detail tutorial in this discussion

About

Github action to configure cz cli

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Contributors