ci: update upload-artifact & download-artifact action versions to v4
v2 & v3 are deprecated and not supported anymore.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Co-authored-by: Benjamin Cabé <benjamin@zephyrproject.org>
diff --git a/.github/workflows/bluetooth-tests.yaml b/.github/workflows/bluetooth-tests.yaml
index 9a9f924..8dccc04 100644
--- a/.github/workflows/bluetooth-tests.yaml
+++ b/.github/workflows/bluetooth-tests.yaml
@@ -51,7 +51,7 @@
- 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 @@
- 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 b84b791..377d542 100644
--- a/.github/workflows/clang.yaml
+++ b/.github/workflows/clang.yaml
@@ -111,7 +111,7 @@
- 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 @@
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 b497e4f..754a43c 100644
--- a/.github/workflows/codecov.yaml
+++ b/.github/workflows/codecov.yaml
@@ -95,7 +95,7 @@
- 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 @@
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 e818ccc..0a681e1 100644
--- a/.github/workflows/compliance.yml
+++ b/.github/workflows/compliance.yml
@@ -72,7 +72,7 @@
./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 f8e4d28..d4b1991 100644
--- a/.github/workflows/doc-build.yml
+++ b/.github/workflows/doc-build.yml
@@ -87,7 +87,7 @@
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 @@
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 @@
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 4dcae1e..d5cf591 100644
--- a/.github/workflows/issue_count.yml
+++ b/.github/workflows/issue_count.yml
@@ -34,7 +34,7 @@
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 3083613..1bd683e 100644
--- a/.github/workflows/license_check.yml
+++ b/.github/workflows/license_check.yml
@@ -15,7 +15,7 @@
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 b90c652..08b403a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -24,7 +24,7 @@
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 827c996..c6add40 100644
--- a/.github/workflows/twister.yaml
+++ b/.github/workflows/twister.yaml
@@ -219,7 +219,7 @@
- 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 @@
steps:
- name: Download Artifacts
- uses: actions/download-artifact@v2
+ uses: actions/download-artifact@v4
with:
path: artifacts