Skip to content

Commit 67c46c7

Browse files
jhlegarretadzenanz
authored andcommitted
ENH: Fix workflow actions warnings linked to Node.js
Fix workflow actions warnings linked to `Node.js`: bump miscellaneous GitHub actions versions in workflows. Fixes: ``` Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/setup-python@v1, lukka/get-cmake@v3.19.2 ``` and ``` The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ ``` raised for example in: https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/actions/runs/3879592431 Fetch full git history for the linter by specifying a 0-valued `fetch-depth`. Related documentation: https://github.com/github/super-linter/issues/1397
1 parent f898fc5 commit 67c46c7

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/build-test-publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
cmake-build-type: "MinSizeRel"
2828

2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
3131
with:
3232
path: Ex
3333

3434
- name: Set up Python 3.9
35-
uses: actions/setup-python@v1
35+
uses: actions/setup-python@v4
3636
with:
3737
python-version: 3.9
3838

@@ -42,7 +42,7 @@ jobs:
4242
python -m pip install ninja
4343
4444
- name: Get specific version of CMake, Ninja
45-
uses: lukka/get-cmake@v3.19.2
45+
uses: lukka/get-cmake@v3.24.2
4646

4747
- name: Download ITK
4848
run: |
@@ -151,7 +151,7 @@ jobs:
151151
path: Ex
152152

153153
- name: Set up Python 3.9
154-
uses: actions/setup-python@v3
154+
uses: actions/setup-python@v4
155155
with:
156156
python-version: 3.9
157157

@@ -161,7 +161,7 @@ jobs:
161161
python -m pip install ninja
162162
163163
- name: Get specific version of CMake, Ninja
164-
uses: lukka/get-cmake@v3.19.2
164+
uses: lukka/get-cmake@v3.24.2
165165

166166
- name: Fetch CTest driver script
167167
run: |
@@ -234,7 +234,7 @@ jobs:
234234
steps:
235235
- uses: actions/checkout@v3
236236
- name: Set up Python 3.9
237-
uses: actions/setup-python@v3
237+
uses: actions/setup-python@v4
238238
with:
239239
python-version: 3.9
240240

@@ -272,12 +272,12 @@ jobs:
272272
submodules: recursive
273273

274274
- name: Set up Python 3.9
275-
uses: actions/setup-python@v3
275+
uses: actions/setup-python@v4
276276
with:
277277
python-version: 3.9
278278

279279
- name: Get specific version of CMake, Ninja
280-
uses: lukka/get-cmake@v3.19.2
280+
uses: lukka/get-cmake@v3.24.2
281281

282282
- name: Install build dependencies
283283
run: |

.github/workflows/lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v3
11+
with:
12+
# Full git history is needed to get a proper
13+
# list of changed files within `super-linter`
14+
fetch-depth: 0
1115

1216
- name: Lint C++
1317
uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master
1418

1519
- name: Set up Python
16-
uses: actions/setup-python@v1
20+
uses: actions/setup-python@v4
1721
with:
1822
python-version: 3.9
1923

0 commit comments

Comments
 (0)