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
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
# Maintain GitHub Actions (e.g., actions/checkout)
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
day: "monday"
time: "06:00"
cooldown:
default-days: 7
# Group all Action updates into one PR
groups:
all-actions-dependencies:
patterns:
- "*"
6 changes: 1 addition & 5 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ jobs:
contents: write
actions: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
- name: Set up git config
run: |
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
- uses: pndurette/gh-actions-auto-docs@v1
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
test-installs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: ./
- name: Test it was installed
run: |
cz version
test-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: ./
with:
version: 4.0.0
Expand All @@ -41,7 +41,7 @@ jobs:
cz_name: cz_kpn
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: ./
with:
extra_requirements: ${{ matrix.extra_requirements.pip_name }}
Expand All @@ -60,7 +60,7 @@ jobs:
test-get-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: ./
Expand All @@ -82,7 +82,7 @@ jobs:
test-trigger-other-job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: ./
Expand All @@ -101,7 +101,7 @@ jobs:
test-python-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: ./
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,13 @@ jobs:
contents: write
actions: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
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]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- run: |
cz version -p
cz bump --yes --annotated-tag
Expand Down
10 changes: 10 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ inputs:
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"
required: false
set-git-config:
description: "Set git config"
required: false
default: "true"

branding:
icon: "anchor"
Expand All @@ -19,6 +24,11 @@ branding:
runs:
using: "composite"
steps:
- if: ${{ inputs.set-git-config == 'true' }}
shell: bash
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- id: set-vars
uses: actions/github-script@v8
env:
Expand Down
2 changes: 1 addition & 1 deletion examples/build-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
changelog: ${{ steps.build-changelog.outputs.changelog }}
steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: commitizen-tools/setup-cz@main
Expand Down
6 changes: 1 addition & 5 deletions examples/bump-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ jobs:
contents: write
actions: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
- name: Set up git config
run: |
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"
Expand Down
4 changes: 2 additions & 2 deletions examples/collect-version-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
current_minor_version: ${{ steps.version-info.outputs.current_minor_version }}
steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-tags: true # in case your version provider is cvs
- uses: commitizen-tools/setup-cz@main
Expand All @@ -38,7 +38,7 @@ jobs:
needs: collect-version-info
steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
- run: |
# Read version information
current_version="${{ needs.collect-version-info.outputs.current_version }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ jobs:
contents: write
actions: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
- name: Set up git config
run: |
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"
Expand Down
Loading