Repository: migros/fotoobo (language: python)

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


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/create-github-release.yaml b/.github/workflows/create-github-release.yaml
index 57c19a4..0992a66 100644
--- a/.github/workflows/create-github-release.yaml
+++ b/.github/workflows/create-github-release.yaml
@@ -13,7 +13,7 @@ jobs:
       contents: write
     steps:
       - name: Checkout code
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
       - name: Create Release
         id: create_release
         uses: actions/create-release@latest
diff --git a/.github/workflows/publish-to-pypi.yaml b/.github/workflows/publish-to-pypi.yaml
index 32b5251..db478a0 100644
--- a/.github/workflows/publish-to-pypi.yaml
+++ b/.github/workflows/publish-to-pypi.yaml
@@ -10,9 +10,9 @@ jobs:
     name: Build and publish fotoobo distributions 📦 to PyPI
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Set up Python 3.10
-        uses: actions/setup-python@v3
+        uses: actions/setup-python@v5
         with:
           python-version: "3.10"
       - name: Install poetry
diff --git a/WHATSNEW.md b/WHATSNEW.md
index 6ab353a..91d0018 100644
--- a/WHATSNEW.md
+++ b/WHATSNEW.md
@@ -5,6 +5,7 @@
 ### Changed
 
 - `fmg get devices` also shows ha nodes if device is a cluster
+- Updated GitHub actions to latest major version due to Node.js 16 deprecation warning
 
 ### Fixed
 


Test patch:
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index ade64cd..033b86c 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -10,11 +10,11 @@ jobs:
       matrix:
         python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Install poetry
         run: pipx install poetry
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v4
+        uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python-version }}
           # cache: poetry
@@ -26,9 +26,9 @@ jobs:
         run: |
           poetry run tox -e mypy -- -- --junit-xml mypy.xml
       - name: Upload mypy report
-        uses: actions/upload-artifact@v3
+        uses: actions/upload-artifact@v4
         with:
-          name: mypy report
+          name: mypy-report-${{ matrix.python-version }}
           path: mypy.xml
       - name: Check formatting with black
         run: |