Skip to content

Commit 9945ff5

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 a6a9cb2 commit 9945ff5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.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: 16-core-ubuntu
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v6
2121
- name: Show disk space at start
2222
run: df -h
2323
- name: Free up disk space
@@ -662,7 +662,7 @@ jobs:
662662
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. cachelib --project-install-prefix cachelib:/usr/local
663663
- name: Copy artifacts
664664
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fixup-dyn-deps --strip --src-dir=. cachelib _artifacts/linux --project-install-prefix cachelib:/usr/local --final-install-prefix /usr/local
665-
- uses: actions/upload-artifact@v4
665+
- uses: actions/upload-artifact@v6
666666
with:
667667
name: cachelib
668668
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)