From b533b816cd8cffe5a8096f2323e502c3ef13f749 Mon Sep 17 00:00:00 2001 From: Ayush Singh Date: Mon, 7 Oct 2024 23:00:06 +0530 Subject: [PATCH] CI: Fix CI Fail - Some action versions have been deprecated and thus should be updated. - I have also updated some which have not been deprecated to hopefully speed up the CI. Signed-off-by: Ayush Singh --- .github/workflows/build.yml | 2 +- .github/workflows/checkpatch.yml | 2 +- .github/workflows/license_check.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 956cc9fe..fdd2add4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: west build -p -b beagleconnect_freedom samples/analog_input - name: Archive firmware - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: firmware path: Arduino-Zephyr-API/build/zephyr/zephyr.* diff --git a/.github/workflows/checkpatch.yml b/.github/workflows/checkpatch.yml index 41e2f69b..a6ff7bc6 100644 --- a/.github/workflows/checkpatch.yml +++ b/.github/workflows/checkpatch.yml @@ -21,7 +21,7 @@ jobs: steps: - name: 'Calculate PR commits + 1' run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: ${{ env.PR_FETCH_DEPTH }} diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index bce1fb66..a57e9e57 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -8,14 +8,14 @@ jobs: name: Scan code for licenses steps: - name: Checkout the code - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Scan the code id: scancode uses: zephyrproject-rtos/action_scancode@v4 with: directory-to-scan: 'scan/' - name: Artifact Upload - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: scancode path: ./artifacts