Skip to content

Commit 8d12ddf

Browse files
authored
ci: upgrade GitHub Actions for Node.js 24 compatibility (#143)
Upgrades actions to versions compatible with the Node.js 24 runtime: - actions/checkout: → v6 - actions/upload-artifact: → v6 - actions/download-artifact: → v7 - actions/github-script: → v8 - actions/setup-python: → v6 Mirrors: NVIDIA/Megatron-LM@1d5e68b Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 4864796 commit 8d12ddf

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

.github/actions/test-template/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ runs:
145145
docker pull nemoci.azurecr.io/${{ inputs.image }}:${{ github.run_id }}
146146
147147
- name: Checkout repository
148-
uses: actions/checkout@v2
148+
uses: actions/checkout@v6
149149
with:
150150
path: Emerging-Optimizers
151151

@@ -249,7 +249,7 @@ runs:
249249
docker exec -t nemo_container_${{ github.run_id }} coverage report -i
250250
251251
- name: Upload artifacts
252-
uses: actions/upload-artifact@v4
252+
uses: actions/upload-artifact@v6
253253
if: ${{ steps.check.outputs.coverage_report != 'none' }}
254254
with:
255255
name: ${{ steps.check.outputs.coverage_report }}

.github/workflows/_build_container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
cache-from: ${{ steps.cache-from.outputs.LAST_PRS }}
4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v6
4646

4747
- name: Get last merged PR
4848
id: cache-from

.github/workflows/cicd-approve-test-queue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
environment: main
2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929

3030
- name: Set up Python
31-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@v6
3232
with:
3333
python-version: "3.12"
3434

.github/workflows/cicd-main.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
&& !cancelled()
9999
steps:
100100
- name: Checkout
101-
uses: actions/checkout@v4
101+
uses: actions/checkout@v6
102102
- name: main
103103
uses: ./.github/actions/test-template
104104
with:
@@ -115,7 +115,7 @@ jobs:
115115

116116
- name: Upload Test Results
117117
if: always()
118-
uses: actions/upload-artifact@v4
118+
uses: actions/upload-artifact@v6
119119
with:
120120
name: test-results-${{ matrix.script }}
121121
path: test-results/**/*.xml
@@ -136,7 +136,7 @@ jobs:
136136
&& !cancelled()
137137
steps:
138138
- name: Checkout
139-
uses: actions/checkout@v4
139+
uses: actions/checkout@v6
140140
- name: main
141141
uses: ./.github/actions/test-template
142142
with:
@@ -152,7 +152,7 @@ jobs:
152152

153153
- name: Upload Test Results
154154
if: always()
155-
uses: actions/upload-artifact@v4
155+
uses: actions/upload-artifact@v6
156156
with:
157157
name: test-results-L1_Tests_GPU
158158
path: test-results/**/*.xml
@@ -168,7 +168,7 @@ jobs:
168168
steps:
169169
- name: Download Test Results
170170
continue-on-error: true
171-
uses: actions/download-artifact@v4
171+
uses: actions/download-artifact@v7
172172
with:
173173
pattern: test-results-L0_*
174174
merge-multiple: true
@@ -189,7 +189,7 @@ jobs:
189189
steps:
190190
- name: Download Test Results
191191
continue-on-error: true
192-
uses: actions/download-artifact@v4
192+
uses: actions/download-artifact@v7
193193
with:
194194
pattern: test-results-L1_*
195195
merge-multiple: true
@@ -218,7 +218,7 @@ jobs:
218218
permissions: write-all
219219
steps:
220220
- name: Checkout
221-
uses: actions/checkout@v4
221+
uses: actions/checkout@v6
222222

223223
- name: Get workflow result
224224
id: result
@@ -245,7 +245,7 @@ jobs:
245245
echo "code=$RESULT" | tee -a $GITHUB_OUTPUT
246246
247247
- name: Checkout for GH CLI
248-
uses: actions/checkout@v4
248+
uses: actions/checkout@v6
249249

250250
- name: Remove label if not cancelled
251251
if: |
@@ -321,7 +321,7 @@ jobs:
321321
environment: nemo-ci
322322
steps:
323323
- name: Generate fake coverage report
324-
uses: actions/github-script@v6
324+
uses: actions/github-script@v8
325325
with:
326326
github-token: ${{ secrets.PAT }}
327327
script: |
@@ -348,10 +348,10 @@ jobs:
348348
flag: [unit-test]
349349
steps:
350350
- name: Checkout
351-
uses: actions/checkout@v4
351+
uses: actions/checkout@v6
352352

353353
- name: Download coverage reports of current branch
354-
uses: actions/download-artifact@v4
354+
uses: actions/download-artifact@v7
355355
with:
356356
pattern: coverage-${{ matrix.flag }}-*
357357

@@ -376,7 +376,7 @@ jobs:
376376
flags: ${{ matrix.flag }}
377377

378378
- name: Upload artifacts
379-
uses: actions/upload-artifact@v4
379+
uses: actions/upload-artifact@v6
380380
with:
381381
name: coverage-${{ matrix.flag }}-aggregated
382382
path: |

.github/workflows/code-linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828
with:
2929
submodules: 'recursive'
3030

0 commit comments

Comments
 (0)