Skip to content

Commit a7d5ea3

Browse files
committed
ci: upgrade GitHub Actions for Node.js 24 compatibility
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 c43923e commit a7d5ea3

File tree

6 files changed

+27
-27
lines changed

6 files changed

+27
-27
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ runs:
9393
apt-get install -y uuid-runtime
9494
9595
- name: Checkout repository
96-
uses: actions/checkout@v2
96+
uses: actions/checkout@v6
9797
with:
9898
path: Export-Deploy
9999

@@ -234,7 +234,7 @@ runs:
234234
echo ::endgroup::
235235
236236
- name: Upload artifacts
237-
uses: actions/upload-artifact@v4
237+
uses: actions/upload-artifact@v6
238238
if: ${{ steps.check.outputs.coverage_report != 'none' }}
239239
with:
240240
name: ${{ steps.check.outputs.coverage_report }}

.github/workflows/_update_dependencies.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: az acr login --name nemoci
5454

5555
- name: Checkout repo
56-
uses: actions/checkout@v4
56+
uses: actions/checkout@v6
5757
with:
5858
ref: ${{ env.TARGET_BRANCH }}
5959

@@ -71,7 +71,7 @@ jobs:
7171
fi
7272
7373
- name: Checkout repo
74-
uses: actions/checkout@v4
74+
uses: actions/checkout@v6
7575
with:
7676
ref: ${{ env.SOURCE_BRANCH }}
7777

@@ -88,7 +88,7 @@ jobs:
8888
bash -c 'uv lock --upgrade'
8989
9090
- name: Upload lock file
91-
uses: actions/upload-artifact@v4
91+
uses: actions/upload-artifact@v6
9292
with:
9393
name: lock-file-${{ env.SOURCE_BRANCH }}
9494
path: uv.lock
@@ -102,7 +102,7 @@ jobs:
102102
TARGET_BRANCH: ${{ inputs.target-branch }}
103103
steps:
104104
- name: Checkout code
105-
uses: actions/checkout@v4
105+
uses: actions/checkout@v6
106106
with:
107107
token: ${{ secrets.PAT }}
108108
ref: ${{ env.TARGET_BRANCH }}
@@ -127,7 +127,7 @@ jobs:
127127
fi
128128
129129
- name: Download lock file
130-
uses: actions/download-artifact@v4
130+
uses: actions/download-artifact@v7
131131
with:
132132
name: lock-file-${{ env.SOURCE_BRANCH }}
133133

.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: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ jobs:
5555
)
5656
steps:
5757
- name: Checkout
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@v6
5959
- name: Setup Python
60-
uses: actions/setup-python@v5
60+
uses: actions/setup-python@v6
6161
with:
6262
python-version: "3.10"
6363
- name: Install ruff
@@ -105,7 +105,7 @@ jobs:
105105
environment: nemo-ci
106106
steps:
107107
- name: Checkout
108-
uses: actions/checkout@v4
108+
uses: actions/checkout@v6
109109
- name: main
110110
uses: ./.github/actions/test-template
111111
with:
@@ -147,7 +147,7 @@ jobs:
147147
environment: nemo-ci
148148
steps:
149149
- name: Checkout
150-
uses: actions/checkout@v4
150+
uses: actions/checkout@v6
151151
- name: main
152152
uses: ./.github/actions/test-template
153153
with:
@@ -188,7 +188,7 @@ jobs:
188188
environment: nemo-ci
189189
steps:
190190
- name: Checkout
191-
uses: actions/checkout@v4
191+
uses: actions/checkout@v6
192192
- name: main
193193
uses: ./.github/actions/test-template
194194
with:
@@ -223,7 +223,7 @@ jobs:
223223
&& !cancelled()
224224
steps:
225225
- name: Checkout
226-
uses: actions/checkout@v4
226+
uses: actions/checkout@v6
227227
- name: main
228228
uses: ./.github/actions/test-template
229229
with:
@@ -256,7 +256,7 @@ jobs:
256256
&& !cancelled()
257257
steps:
258258
- name: Checkout
259-
uses: actions/checkout@v4
259+
uses: actions/checkout@v6
260260
- name: main
261261
uses: ./.github/actions/test-template
262262
with:
@@ -289,7 +289,7 @@ jobs:
289289
&& !cancelled()
290290
steps:
291291
- name: Checkout
292-
uses: actions/checkout@v4
292+
uses: actions/checkout@v6
293293
- name: main
294294
uses: ./.github/actions/test-template
295295
with:
@@ -328,7 +328,7 @@ jobs:
328328
permissions: write-all
329329
steps:
330330
- name: Checkout
331-
uses: actions/checkout@v4
331+
uses: actions/checkout@v6
332332

333333
- name: Get workflow result
334334
id: result
@@ -363,7 +363,7 @@ jobs:
363363
environment: nemo-ci
364364
steps:
365365
- name: Generate fake coverage report
366-
uses: actions/github-script@v6
366+
uses: actions/github-script@v8
367367
with:
368368
github-token: ${{ secrets.PAT }}
369369
script: |
@@ -390,10 +390,10 @@ jobs:
390390
flag: [unit-test, e2e]
391391
steps:
392392
- name: Checkout
393-
uses: actions/checkout@v4
393+
uses: actions/checkout@v6
394394

395395
- name: Download coverage reports of current branch
396-
uses: actions/download-artifact@v4
396+
uses: actions/download-artifact@v7
397397
with:
398398
pattern: coverage-${{ matrix.flag }}-*
399399

@@ -418,7 +418,7 @@ jobs:
418418
flags: ${{ matrix.flag }}
419419

420420
- name: Upload artifacts
421-
uses: actions/upload-artifact@v4
421+
uses: actions/upload-artifact@v6
422422
with:
423423
name: coverage-${{ matrix.flag }}-aggregated
424424
path: |

.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

@@ -85,7 +85,7 @@ jobs:
8585
fi
8686
8787
- name: Upload lockfile artifact
88-
uses: actions/upload-artifact@v4
88+
uses: actions/upload-artifact@v6
8989
with:
9090
name: uv-lockfile
9191
path: uv.lock
@@ -102,7 +102,7 @@ jobs:
102102
103103
- name: Comment on PR with lockfile status
104104
if: github.event_name == 'pull_request'
105-
uses: actions/github-script@v7
105+
uses: actions/github-script@v8
106106
with:
107107
script: |
108108
const changed = '${{ steps.check_changes.outputs.changed }}';

0 commit comments

Comments
 (0)