From 9f24445508a889ec8e0ce96c0bac70438a9a66f8 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Fri, 9 Feb 2024 13:05:36 -0500 Subject: [PATCH] Update action versions in common workflows GitHub has recently been presenting the following warning: > Node.js 16 actions are deprecated. Please update the following actions to > use Node.js 20: actions/checkout@v3, actions/setup-python@v4, > actions/cache@v3. For more information see: > https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. This commit updates the action version in several of our workflows to more recent versions. --- .github/workflows/build-image.yaml | 2 +- .github/workflows/precommit.yaml | 8 ++++---- .github/workflows/tests.yaml | 4 ++-- .github/workflows/validate-manifests.yaml | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index ee1dec7..dffbbbe 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Login against a Docker registry except on PR # https://github.com/docker/login-action diff --git a/.github/workflows/precommit.yaml b/.github/workflows/precommit.yaml index abaa7df..21205e5 100644 --- a/.github/workflows/precommit.yaml +++ b/.github/workflows/precommit.yaml @@ -10,15 +10,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.12" - name: Configure caching - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pre-commit key: precommit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 79c4c40..dd84449 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,10 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11" diff --git a/.github/workflows/validate-manifests.yaml b/.github/workflows/validate-manifests.yaml index 7f1ea73..d156eb5 100644 --- a/.github/workflows/validate-manifests.yaml +++ b/.github/workflows/validate-manifests.yaml @@ -36,17 +36,17 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check out CI scripts - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ inputs.common_ci_repository }} ref: ${{ inputs.common_ci_ref }} path: "${{ env.COMMON_CI }}" - name: Checkout additional schema definitions - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ inputs.schema_repository }} ref: ${{ inputs.schema_ref }}