Skip to content

Commit

Permalink
ci: update upload-artifact & download-artifact action versions to v4
Browse files Browse the repository at this point in the history
v2 & v3 are deprecated and not supported anymore.

Signed-off-by: Anas Nashif <[email protected]>
Co-authored-by: Benjamin Cabé <[email protected]>
  • Loading branch information
nashif and kartben committed Jan 9, 2025
1 parent f730851 commit e480d0a
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bluetooth-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/issue_count.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/twister.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -236,7 +236,7 @@ jobs:

steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: artifacts

Expand Down

0 comments on commit e480d0a

Please sign in to comment.