From e480d0a2ab772e87322b05b365a2934b29276113 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 16 Dec 2024 16:24:21 -0500 Subject: [PATCH] ci: update upload-artifact & download-artifact action versions to v4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v2 & v3 are deprecated and not supported anymore. Signed-off-by: Anas Nashif Co-authored-by: Benjamin Cabé --- .github/workflows/bluetooth-tests.yaml | 4 ++-- .github/workflows/clang.yaml | 4 ++-- .github/workflows/codecov.yaml | 4 ++-- .github/workflows/compliance.yml | 2 +- .github/workflows/doc-build.yml | 6 +++--- .github/workflows/issue_count.yml | 2 +- .github/workflows/license_check.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/twister.yaml | 4 ++-- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/bluetooth-tests.yaml b/.github/workflows/bluetooth-tests.yaml index 9a9f924e7cde22..8dccc04308a0ea 100644 --- a/.github/workflows/bluetooth-tests.yaml +++ b/.github/workflows/bluetooth-tests.yaml @@ -51,7 +51,7 @@ jobs: - name: Upload Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bluetooth-test-results path: | @@ -60,7 +60,7 @@ jobs: - name: Upload Event Details if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: event path: | diff --git a/.github/workflows/clang.yaml b/.github/workflows/clang.yaml index b84b791d418f34..377d542139d904 100644 --- a/.github/workflows/clang.yaml +++ b/.github/workflows/clang.yaml @@ -111,7 +111,7 @@ jobs: - name: Upload Unit Test Results if: always() && steps.twister.outputs.report_needed != 0 - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Unit Test Results (Subset ${{ matrix.platform }}) path: twister-out/twister.xml @@ -123,7 +123,7 @@ jobs: if: (success() || failure() ) && needs.clang-build.outputs.report_needed != 0 steps: - name: Download Artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: path: artifacts diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index b497e4fa6695aa..754a43ceb63e91 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -95,7 +95,7 @@ jobs: - name: Upload Coverage Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Coverage Data (Subset ${{ matrix.platform }}) path: coverage/reports/${{ matrix.platform }}.info @@ -113,7 +113,7 @@ jobs: with: fetch-depth: 0 - name: Download Artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: path: coverage/reports diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml index e818ccc2ad03e5..0a681e1d7edc33 100644 --- a/.github/workflows/compliance.yml +++ b/.github/workflows/compliance.yml @@ -72,7 +72,7 @@ jobs: ./scripts/ci/check_compliance.py -m Codeowners -m Devicetree -m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m Kconfig -c origin/${BASE_REF}.. - name: upload-results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 continue-on-error: True with: name: compliance.xml diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index f8e4d28b694d38..d4b1991a41fce8 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -87,7 +87,7 @@ jobs: tar cfJ html-output.tar.xz --directory=doc/_build html - name: upload-build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: html-output path: html-output.tar.xz @@ -103,7 +103,7 @@ jobs: echo "::notice:: Documentation will be available shortly at: ${DOC_URL}" - name: upload-pr-number - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: github.event_name == 'pull_request' with: name: pr_num @@ -161,7 +161,7 @@ jobs: DOC_TAG=${DOC_TAG} SPHINXOPTS="-q -j auto" LATEXMKOPTS="-quiet -halt-on-error" make -C doc pdf - name: upload-build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: pdf-output path: doc/_build/latex/zephyr.pdf diff --git a/.github/workflows/issue_count.yml b/.github/workflows/issue_count.yml index 4dcae1e79e8e30..d5cf591e8a8b46 100644 --- a/.github/workflows/issue_count.yml +++ b/.github/workflows/issue_count.yml @@ -34,7 +34,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: upload-stats - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 continue-on-error: True with: name: ${{ env.OUTPUT_FILE_NAME }} diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 3083613e8ce83a..1bd683e29d48fc 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -15,7 +15,7 @@ jobs: with: directory-to-scan: 'scan/' - name: Artifact Upload - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: scancode path: ./artifacts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b90c652168a3c7..08b403a7451e4d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: args: spdx -o zephyr-${{ steps.get_version.outputs.VERSION }}.spdx - name: upload-results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 continue-on-error: True with: name: zephyr-${{ steps.get_version.outputs.VERSION }}.spdx diff --git a/.github/workflows/twister.yaml b/.github/workflows/twister.yaml index 827c996fd20a37..c6add405d1ba06 100644 --- a/.github/workflows/twister.yaml +++ b/.github/workflows/twister.yaml @@ -219,7 +219,7 @@ jobs: - name: Upload Unit Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Unit Test Results (Subset ${{ matrix.subset }}) if-no-files-found: ignore @@ -236,7 +236,7 @@ jobs: steps: - name: Download Artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: path: artifacts