Skip to content

Commit

Permalink
ENH: Fix workflow actions warnings linked to Node.js
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jhlegarreta authored and hjmjohnson committed Apr 12, 2024
1 parent 085446a commit 95b8a6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/apply-clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang-format-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
4 changes: 2 additions & 2 deletions .github/workflows/spell-check-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 95b8a6f

Please sign in to comment.