From ce621d947c2a13b34a6b3c1c048e8facab1b0296 Mon Sep 17 00:00:00 2001 From: Christian Werner Date: Fri, 19 Jun 2026 04:05:57 +0200 Subject: [PATCH] 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. --- .gitea/workflows/build-kernel.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-kernel.yml b/.gitea/workflows/build-kernel.yml index 9d9610a..1b4d5bc 100644 --- a/.gitea/workflows/build-kernel.yml +++ b/.gitea/workflows/build-kernel.yml @@ -69,13 +69,15 @@ jobs: echo "kernel version $ver -> file modules/iec_listener_${safe}.ko" mkdir -p out/modules 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 uses: https://github.com/christopherHX/gitea-upload-artifact@v4 with: # Name by the path-friendly version so artifact names stay unique; all # of them merge back into the single modules/ folder at download time. - name: ${{ matrix.kernel_version }} + name: ${{ env.SAFE_VER }} path: kernel/out if-no-files-found: error