feat(ci): Add unique artifact naming with SAFE_VER environment variable
Update kernel build workflow to use a path-friendly version name for artifact naming. This ensures artifact names remain unique and avoids issues with colon characters. Added SAFE_VER to GITHUB_ENV for reuse.
This commit is contained in:
parent
c6958fa380
commit
ce621d947c
@ -69,13 +69,15 @@ jobs:
|
|||||||
echo "kernel version $ver -> file modules/iec_listener_${safe}.ko"
|
echo "kernel version $ver -> file modules/iec_listener_${safe}.ko"
|
||||||
mkdir -p out/modules
|
mkdir -p out/modules
|
||||||
mv iec_listener.ko "out/modules/iec_listener_${safe}.ko"
|
mv iec_listener.ko "out/modules/iec_listener_${safe}.ko"
|
||||||
|
# Expose the path-friendly name for the (colon-rejecting) artifact name.
|
||||||
|
echo "SAFE_VER=$safe" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Upload build output
|
- name: Upload build output
|
||||||
uses: https://github.com/christopherHX/gitea-upload-artifact@v4
|
uses: https://github.com/christopherHX/gitea-upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
# Name by the path-friendly version so artifact names stay unique; all
|
# Name by the path-friendly version so artifact names stay unique; all
|
||||||
# of them merge back into the single modules/ folder at download time.
|
# of them merge back into the single modules/ folder at download time.
|
||||||
name: ${{ matrix.kernel_version }}
|
name: ${{ env.SAFE_VER }}
|
||||||
path: kernel/out
|
path: kernel/out
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user