Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Commit 7cb7634

Browse files
authored
ci: upgrade GitHub Actions for Node.js 24 compatibility (#106)
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 f8c1c09 commit 7cb7634

9 files changed

Lines changed: 22 additions & 22 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ runs:
138138
docker pull nemoci.azurecr.io/${{ inputs.image }}:${{ github.run_id }}
139139
140140
- name: Checkout repository
141-
uses: actions/checkout@v2
141+
uses: actions/checkout@v6
142142
with:
143143
path: DFM
144144
submodules: recursive
@@ -246,7 +246,7 @@ runs:
246246
exit $EXIT_CODE
247247
248248
- name: Upload artifacts
249-
uses: actions/upload-artifact@v4
249+
uses: actions/upload-artifact@v6
250250
if: ${{ steps.check.outputs.coverage_report != 'none' }}
251251
with:
252252
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/build-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828

2929
- name: Set up Python
30-
uses: actions/setup-python@v5
30+
uses: actions/setup-python@v6
3131
with:
3232
python-version: '3.12'
3333

@@ -55,7 +55,7 @@ jobs:
5555
sphinx-build -b html docs docs/build/html
5656
5757
- name: Upload docs artifact
58-
uses: actions/upload-artifact@v4
58+
uses: actions/upload-artifact@v6
5959
with:
6060
name: documentation
6161
path: docs/build/html/

.github/workflows/changelog-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout branch
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626
with:
2727
ref: main
2828
fetch-depth: 0
@@ -75,7 +75,7 @@ jobs:
7575
run: cat CHANGELOG.md
7676

7777
- name: Create or update label
78-
uses: actions/github-script@v6
78+
uses: actions/github-script@v8
7979
with:
8080
script: |
8181
const labelName = '${{ inputs.release-branch }}';

.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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
environment: nemo-ci
7878
steps:
7979
- name: Checkout
80-
uses: actions/checkout@v4
80+
uses: actions/checkout@v6
8181
with:
8282
submodules: recursive
8383
- name: main
@@ -113,7 +113,7 @@ jobs:
113113
environment: nemo-ci
114114
steps:
115115
- name: Checkout
116-
uses: actions/checkout@v4
116+
uses: actions/checkout@v6
117117
with:
118118
submodules: recursive
119119
- name: main
@@ -140,7 +140,7 @@ jobs:
140140
permissions: write-all
141141
steps:
142142
- name: Checkout
143-
uses: actions/checkout@v4
143+
uses: actions/checkout@v6
144144

145145
- name: Get workflow result
146146
id: result
@@ -165,7 +165,7 @@ jobs:
165165
echo "code=$RESULT" | tee -a $GITHUB_OUTPUT
166166
167167
- name: Checkout for GH CLI
168-
uses: actions/checkout@v4
168+
uses: actions/checkout@v6
169169

170170
- name: Remove label if not cancelled
171171
if: |
@@ -236,10 +236,10 @@ jobs:
236236
flag: [unit-test, e2e]
237237
steps:
238238
- name: Checkout
239-
uses: actions/checkout@v4
239+
uses: actions/checkout@v6
240240

241241
- name: Download coverage reports of current branch
242-
uses: actions/download-artifact@v4
242+
uses: actions/download-artifact@v7
243243
with:
244244
pattern: coverage-${{ matrix.flag }}-*
245245

@@ -266,7 +266,7 @@ jobs:
266266
name: DFM-Coverage-${{ matrix.flag }}
267267

268268
- name: Upload artifacts
269-
uses: actions/upload-artifact@v4
269+
uses: actions/upload-artifact@v6
270270
with:
271271
name: coverage-${{ matrix.flag }}-aggregated
272272
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

.github/workflows/generate-lockfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
df -h
4141
4242
- name: Checkout repository
43-
uses: actions/checkout@v4
43+
uses: actions/checkout@v6
4444
with:
4545
submodules: recursive
4646

@@ -84,7 +84,7 @@ jobs:
8484
fi
8585
8686
- name: Upload lockfile artifact
87-
uses: actions/upload-artifact@v4
87+
uses: actions/upload-artifact@v6
8888
with:
8989
name: uv-lockfile
9090
path: uv.lock
@@ -101,7 +101,7 @@ jobs:
101101
102102
- name: Comment on PR with lockfile status
103103
if: github.event_name == 'pull_request'
104-
uses: actions/github-script@v7
104+
uses: actions/github-script@v8
105105
with:
106106
script: |
107107
const changed = '${{ steps.check_changes.outputs.changed }}';

.github/workflows/ruff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
ruff:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v6
2222
- uses: astral-sh/ruff-action@v3
2323
with:
2424
version: 0.11.4

0 commit comments

Comments
 (0)