From 7ad57e1157a75231818cd6e99378da03e62dd19b Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 12 Dec 2024 13:27:17 +0100 Subject: [PATCH] MT#61451 GH: raise workflow actions to v4 Artifact actions v3 will be closing down by January 30, 2025, see https://github.blog/changelog/2024-11-05-notice-of-breaking-changes-for-github-actions/ + https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ Migrate actions/upload-artifact@v3 to actions/upload-artifact@v4 as documented at https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md NOTE: We need unique artifact names, otherwise we'd try to overwrite existing artifacts. But in v4 the artifacts are immutable unless deleted, so it would fail the build. We could also overwrite them via `overwrite: true`, but it's useful to have artifacts for both bookworm *and* sid available, so adapt their naming accordingly. While at it, also bump actions/checkout@v3 to actions/checkout@v4. Change-Id: I716939764fadd2d812960e220d7a20075bb4a366 --- .github/workflows/coverity.yml | 2 +- .github/workflows/debpkg.yml | 20 ++++++++++---------- .github/workflows/shellcheck.yml | 2 +- .github/workflows/unit-tests.yml | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 8f48dc3b8..43bb9dae6 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -20,7 +20,7 @@ jobs: COVERITY_SCAN_NOTIFICATION_EMAIL: development@sipwise.com steps: - name: Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Update APT cache run: | diff --git a/.github/workflows/debpkg.yml b/.github/workflows/debpkg.yml index 53ab03971..9093303fd 100644 --- a/.github/workflows/debpkg.yml +++ b/.github/workflows/debpkg.yml @@ -13,21 +13,21 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Execute Docker debpkg action uses: ./.github/actions/debpkg-bookworm - name: Store Debian package artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: Debian binary package files + name: Debian binary package files for bookworm path: '*.deb' - name: Store Debian package build info - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: Debian buildinfo file + name: Debian buildinfo file for bookworm path: '*.buildinfo' build-deb-sid: @@ -36,19 +36,19 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Execute Docker debpkg action uses: ./.github/actions/debpkg-sid - name: Store Debian package artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: Debian binary package files + name: Debian binary package files for sid path: '*.deb' - name: Store Debian package build info - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: Debian buildinfo file + name: Debian buildinfo file for sid path: '*.buildinfo' diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index e8cfd215a..137943399 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Display original shellcheck version run: shellcheck --version diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 3d9b3b227..680858655 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Update APT cache run: |