From 0538642986bb2204e355b63c98c34ad85c13a54c Mon Sep 17 00:00:00 2001 From: Santiago Fraire Willemoes Date: Mon, 12 Jan 2026 10:10:16 +0000 Subject: [PATCH 1/4] feat(action): add default git config --- action.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/action.yaml b/action.yaml index ad007e0..d871865 100644 --- a/action.yaml +++ b/action.yaml @@ -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" @@ -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: From 4a655fe7112bf3fe61644c8c4d2834052a3179d7 Mon Sep 17 00:00:00 2001 From: Santiago Fraire Willemoes Date: Mon, 12 Jan 2026 10:12:46 +0000 Subject: [PATCH 2/4] docs: remove git config, which happens automatically --- .github/workflows/bump.yaml | 4 ---- README.md | 4 ---- examples/bump-release.yaml | 4 ---- .../trigger-other-job/.github/workflows/bump-release.yaml | 4 ---- 4 files changed, 16 deletions(-) diff --git a/.github/workflows/bump.yaml b/.github/workflows/bump.yaml index 2e9ffb7..fcf6ebc 100644 --- a/.github/workflows/bump.yaml +++ b/.github/workflows/bump.yaml @@ -14,10 +14,6 @@ jobs: 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: diff --git a/README.md b/README.md index 5bec610..0a2314e 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,6 @@ jobs: - 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 diff --git a/examples/bump-release.yaml b/examples/bump-release.yaml index 618be5e..8ca7b44 100644 --- a/examples/bump-release.yaml +++ b/examples/bump-release.yaml @@ -17,10 +17,6 @@ jobs: 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" diff --git a/examples/trigger-other-job/.github/workflows/bump-release.yaml b/examples/trigger-other-job/.github/workflows/bump-release.yaml index 4d6aabb..f8187e6 100644 --- a/examples/trigger-other-job/.github/workflows/bump-release.yaml +++ b/examples/trigger-other-job/.github/workflows/bump-release.yaml @@ -17,10 +17,6 @@ jobs: 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" From 713397e5314e196f67bb3dba222a0d6eb0bf83e9 Mon Sep 17 00:00:00 2001 From: Santiago Fraire Willemoes Date: Mon, 12 Jan 2026 10:13:12 +0000 Subject: [PATCH 3/4] ci: bump to checkout v6 --- .github/workflows/bump.yaml | 2 +- .github/workflows/test.yaml | 12 ++++++------ README.md | 2 +- examples/build-changelog.yaml | 2 +- examples/bump-release.yaml | 2 +- examples/collect-version-info.yaml | 4 ++-- .../.github/workflows/bump-release.yaml | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/bump.yaml b/.github/workflows/bump.yaml index fcf6ebc..fc58018 100644 --- a/.github/workflows/bump.yaml +++ b/.github/workflows/bump.yaml @@ -10,7 +10,7 @@ jobs: contents: write actions: write steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 fetch-tags: true diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 252719b..1cf1005 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -9,7 +9,7 @@ jobs: test-installs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: ./ - name: Test it was installed run: | @@ -17,7 +17,7 @@ jobs: test-version: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: ./ with: version: 4.0.0 @@ -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 }} @@ -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: ./ @@ -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: ./ @@ -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: ./ diff --git a/README.md b/README.md index 0a2314e..d30bd5f 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ jobs: contents: write actions: write steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 fetch-tags: true diff --git a/examples/build-changelog.yaml b/examples/build-changelog.yaml index b653b0f..68a7c74 100644 --- a/examples/build-changelog.yaml +++ b/examples/build-changelog.yaml @@ -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 diff --git a/examples/bump-release.yaml b/examples/bump-release.yaml index 8ca7b44..1c92f1b 100644 --- a/examples/bump-release.yaml +++ b/examples/bump-release.yaml @@ -13,7 +13,7 @@ jobs: contents: write actions: write steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 fetch-tags: true diff --git a/examples/collect-version-info.yaml b/examples/collect-version-info.yaml index b252518..8e97721 100644 --- a/examples/collect-version-info.yaml +++ b/examples/collect-version-info.yaml @@ -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 @@ -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 }}" diff --git a/examples/trigger-other-job/.github/workflows/bump-release.yaml b/examples/trigger-other-job/.github/workflows/bump-release.yaml index f8187e6..08333d7 100644 --- a/examples/trigger-other-job/.github/workflows/bump-release.yaml +++ b/examples/trigger-other-job/.github/workflows/bump-release.yaml @@ -13,7 +13,7 @@ jobs: contents: write actions: write steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 fetch-tags: true From 7bfc323471602837512ac4347eb422b5880a9e79 Mon Sep 17 00:00:00 2001 From: Santiago Fraire Willemoes Date: Mon, 12 Jan 2026 10:15:25 +0000 Subject: [PATCH 4/4] ci: add dependabot --- .github/dependabot.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..616270d --- /dev/null +++ b/.github/dependabot.yml @@ -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: + - "*"