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: + - "*" diff --git a/.github/workflows/bump.yaml b/.github/workflows/bump.yaml index 2e9ffb7..fc58018 100644 --- a/.github/workflows/bump.yaml +++ b/.github/workflows/bump.yaml @@ -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: 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 5bec610..d30bd5f 100644 --- a/README.md +++ b/README.md @@ -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 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: 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 618be5e..1c92f1b 100644 --- a/examples/bump-release.yaml +++ b/examples/bump-release.yaml @@ -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" 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 4d6aabb..08333d7 100644 --- a/examples/trigger-other-job/.github/workflows/bump-release.yaml +++ b/examples/trigger-other-job/.github/workflows/bump-release.yaml @@ -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"