From 95b8a6fa07b39780b803907ea5062166324542e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Thu, 11 Apr 2024 20:50:29 -0400 Subject: [PATCH] ENH: Fix workflow actions warnings linked to `Node.js` Fix format linter and spell check workflow actions warnings linked to `Node.js`: bump `actions/checkout` to `v4` and `actions/setup-python` to v5. Fixes: ``` Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. ``` raised for example in: https://github.com/InsightSoftwareConsortium/ITK/actions/runs/8655098674 --- .github/workflows/apply-clang-format.yml | 2 +- .github/workflows/clang-format-linter.yml | 2 +- .github/workflows/spell-check-comments.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/apply-clang-format.yml b/.github/workflows/apply-clang-format.yml index 5459d7a7f8b..bbd0f6f9344 100644 --- a/.github/workflows/apply-clang-format.yml +++ b/.github/workflows/apply-clang-format.yml @@ -11,7 +11,7 @@ jobs: pull-requests: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: InsightSoftwareConsortium/ITKApplyClangFormatAction@master diff --git a/.github/workflows/clang-format-linter.yml b/.github/workflows/clang-format-linter.yml index 213d77d5720..9cf9c6cb463 100644 --- a/.github/workflows/clang-format-linter.yml +++ b/.github/workflows/clang-format-linter.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master with: error-message: 'Code is inconsistent with ITK Coding Style. Add the *action:ApplyClangFormat* PR label to correct.' diff --git a/.github/workflows/spell-check-comments.yml b/.github/workflows/spell-check-comments.yml index c1476a82b73..a36b27fbe0b 100644 --- a/.github/workflows/spell-check-comments.yml +++ b/.github/workflows/spell-check-comments.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.9 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9