Skip to content

Commit 309007c

Browse files
hchokshimeta-codesync[bot]
authored andcommitted
Update Github actions checkout and upload-artifact to v6 for Node 24 compatibility
Summary: Upgrade GitHub Actions to their latest versions to ensure compatibility with Node 24, as Node 20 EOL is April 2026. | Action | Old Version(s) | New Version | |--------|---------------|-------------| | `actions/checkout` | [`v4`](https://github.com/actions/checkout/releases/tag/v4) | [`v6`](https://github.com/actions/checkout/releases/tag/v6) | | `actions/upload-artifact` | [`v4`](https://github.com/actions/upload-artifact/releases/tag/v4) | [`v6`](https://github.com/actions/upload-artifact/releases/tag/v6) | [GitHub announced](https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/) that Node 20 is being deprecated and runners will begin using Node 24 by default starting 2026-03-04. **Node 20 EOL**: April 2026 **Node 24 becomes default on Github Actions**: 2026-03-04 Reviewed By: bigfootjon Differential Revision: D89332222 fbshipit-source-id: b8793f6a7a2aaac6f93cd8419e9afa49c5489bee
1 parent 06869b6 commit 309007c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/getdeps_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
build:
1818
runs-on: ubuntu-22.04
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v6
2121
- id: paths
2222
name: Query paths
2323
run: python3 build/fbcode_builder/getdeps.py query-paths --recursive --src-dir=. katran >> "$GITHUB_OUTPUT"
@@ -576,7 +576,7 @@ jobs:
576576
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. katran --project-install-prefix katran:/usr/local
577577
- name: Copy artifacts
578578
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --strip --src-dir=. katran _artifacts/linux --project-install-prefix katran:/usr/local --final-install-prefix /usr/local
579-
- uses: actions/upload-artifact@v4
579+
- uses: actions/upload-artifact@v6
580580
with:
581581
name: katran
582582
path: _artifacts

build/fbcode_builder/getdeps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ def write_job_for_platform(self, platform, args): # noqa: C901
11741174
# && is not supported on default windows powershell, so use cmd
11751175
out.write(" shell: cmd\n")
11761176

1177-
out.write(" - uses: actions/checkout@v4\n")
1177+
out.write(" - uses: actions/checkout@v6\n")
11781178

11791179
build_type_arg = ""
11801180
if override_build_type:
@@ -1365,7 +1365,7 @@ def write_job_for_platform(self, platform, args): # noqa: C901
13651365
f"--final-install-prefix /usr/local\n"
13661366
)
13671367

1368-
out.write(" - uses: actions/upload-artifact@v4\n")
1368+
out.write(" - uses: actions/upload-artifact@v6\n")
13691369
out.write(" with:\n")
13701370
out.write(" name: %s\n" % manifest.name)
13711371
out.write(" path: _artifacts\n")

0 commit comments

Comments
 (0)