From 8126f4b89c8b1e43e15f32c32f780f943ddf869f Mon Sep 17 00:00:00 2001 From: real-yfprojects <62463991+real-yfprojects@users.noreply.github.com> Date: Sun, 22 Dec 2024 17:24:30 +0100 Subject: [PATCH] [ci] Update used actions (deps) Admittedly, I just updated them to the latest version without checking the change logs for breaking changes. * .github/actions/setup/action.yml * .github/workflows/ci.yml * .github/workflows/publish-docs.yml --- .github/actions/setup/action.yml | 6 +++--- .github/workflows/ci.yml | 18 +++++++++--------- .github/workflows/publish-docs.yml | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 2a2fe3f..63a1e7b 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -34,14 +34,14 @@ runs: shell: bash - name: setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 if: inputs.cache-python == 'true' with: python-version: ${{ inputs.python-version }} cache: "pip" - name: setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 if: inputs.cache-python != 'true' with: python-version: ${{ inputs.python-version }} @@ -69,7 +69,7 @@ runs: shell: bash - name: Configure Caching for Pre-Commit if: ${{ inputs.setup-pre-commit == 'true' }} - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pre-commit key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45f177a..6447f8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + uses: actions/checkout@v4 - name: Setup id: setup @@ -41,7 +41,7 @@ jobs: # Upload changed files on pre-commit error - name: Upload changed files if: ${{ failure() && steps.changed-files.outputs.files }} - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 + uses: actions/upload-artifact@v4 with: name: Files modified by pre-commit path: ${{ steps.changed-files.outputs.files }} @@ -52,10 +52,10 @@ jobs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - name: Checkout - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + uses: actions/checkout@v4 - name: setup python - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 + uses: actions/setup-python@v5 with: python-version: "3.11" @@ -84,7 +84,7 @@ jobs: fail-fast: false steps: - name: Checkout - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + uses: actions/checkout@v4 - name: Setup id: setup @@ -96,14 +96,14 @@ jobs: run: make test # Upload summary of test results - - uses: test-summary/action@v2.1 + - uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4 if: failure() || success() with: paths: report.xml # Upload coverage to job summary - name: Summarize coverage - uses: livewing/lcov-job-summary@0a9952db27f98def2ba2de3189c6b24acc4c5501 # v1.1.0 + uses: livewing/lcov-job-summary@28126fb20073f4624d0f8e2c6f4afbe1c0670cbb # v1.2.0 if: matrix.extras == 'all' && (failure() || success()) with: lcov: coverage.lcov @@ -112,7 +112,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + uses: actions/checkout@v4 - name: Setup id: setup @@ -126,7 +126,7 @@ jobs: # Upload build - name: Upload build - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 + uses: actions/upload-artifact@v4 with: name: Docs path: docs/build diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index f7423fb..9207438 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -29,7 +29,7 @@ jobs: steps: # Checkout current ref to get the current version of the build script - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Install poetry - name: Install poetry @@ -41,7 +41,7 @@ jobs: run: echo venv_path="$(poetry config virtualenvs.path)" >> $GITHUB_ENV - name: Retrieve cache - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 id: cache-restore with: path: ${{ env.venv_path }} @@ -57,7 +57,7 @@ jobs: # Configure pages provides deployment URL - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v5 # Prepare - name: Fetch tags and branches @@ -83,7 +83,7 @@ jobs: echo 'cache_key=publish-docs|poetry|'"$(find ${{ env.venv_path }} -type f -exec sha256sum {} \; | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV - name: Upload new cache - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 continue-on-error: true if: steps.cache-restore.outputs.cache-matched-key != env.cache_key with: @@ -92,7 +92,7 @@ jobs: # Upload built docs - name: Upload build artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: "build" retention-days: 7 @@ -100,4 +100,4 @@ jobs: # Deploy uploaded artifact - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4