Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,16 @@ jobs:
gh workflow run .github/workflows/trigger-me.yaml \
--ref "${{ github.head_ref }}" \
-f "version=${{ steps.get-version.outputs.current_version }}"
test-python-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: ./
with:
python-version: "3.13"
- id: get-version
run: |
python --version
cz version
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
fetch-depth: 0
fetch-tags: true
- uses: commitizen-tools/setup-cz@main
with:
python-version: "3.x"
- name: Set up git config
run: |
git config --global user.name "github-actions[bot]"
Expand Down
4 changes: 4 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ inputs:
extra_requirements:
description: "Install extra dependencies"
required: false
python-version:
description: "Version 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-python"

branding:
icon: "anchor"
Expand All @@ -31,6 +33,8 @@ runs:
// Write outputs
core.setOutput('commitizen-version', setCommitizenVersion);
- uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version }}
- name: Install commitizen
shell: bash
env:
Expand Down
2 changes: 2 additions & 0 deletions examples/bump-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- uses: commitizen-tools/setup-cz@main
with:
python-version: "3.x"
- id: bump-version
run: |
cz bump --yes --annotated-tag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- uses: commitizen-tools/setup-cz@main
with:
python-version: "3.x"
- id: bump-version
run: |
cz bump --yes --annotated-tag
Expand Down
Loading