ci: resolve GitHub Actions Node.js warnings
authorVincent Fu <vincent.fu@samsung.com>
Wed, 24 Jan 2024 18:58:11 +0000 (18:58 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Wed, 24 Jan 2024 19:45:33 +0000 (19:45 +0000)
Switch from actions/checkout@v3 to v4 and from
actions/upload-artifacts@v3 to v4.

This resolves the below warnings from GitHub Actions:

Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20: actions/checkout@v3. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20: actions/upload-artifact@v3. For more information see:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
.github/workflows/ci.yml

index b8000024fb9245fc642e1156d5e2455d5012b2a8..e53082c302ecf6ffe41f94292265ab39c00a47b2 100644 (file)
@@ -64,7 +64,7 @@ jobs:
       if: ${{ contains( matrix.build, 'windows' ) }}
       run: git config --global core.autocrlf input
     - name: Checkout repo
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
     - name: Install Cygwin toolchain (Windows)
       if: ${{ startsWith(matrix.build, 'windows-cygwin') }}
       uses: cygwin/cygwin-install-action@master
@@ -110,7 +110,7 @@ jobs:
 
     - name: Upload installer as artifact (Windows)
       if: ${{ contains( matrix.build, 'windows' ) }}
-      uses: actions/upload-artifact@v3
+      uses: actions/upload-artifact@v4
       with:
         name: ${{ matrix.build }}-installer
         path: os\windows\*.msi