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
pull/1884/head
Michael Prokop 4 months ago
parent d94da835df
commit 7ad57e1157

@ -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: |

@ -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'

@ -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

@ -13,7 +13,7 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Update APT cache
run: |

Loading…
Cancel
Save