From 16fc7afd6969fcc9cbb045876282b36012e2b1f9 Mon Sep 17 00:00:00 2001 From: Echo Date: Sun, 3 May 2026 02:49:18 +0000 Subject: [PATCH] fix(ci): prevent recursive tag triggers and u2204 release duplication - Change tag trigger from v* to v*.*.* to prevent recursive CI runs - Upload u2204 deb to same release tag (not creating -u2204 suffix) - Rename u2204 deb filename to include u2204 for differentiation --- .gitea/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index eb65bfd..80b0236 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI/CD Pipeline "on": push: branches: [ master, develop ] - tags: [ 'v*' ] + tags: [ 'v*.*.*' ] pull_request: branches: [ master ] @@ -162,8 +162,14 @@ jobs: run: | TAG_NAME=${GITHUB_REF#refs/tags/} FILE=$(ls ../linux-patch-api_*.deb 2>/dev/null | head -1) + # Rename deb to include u2204 in filename to avoid collision with main build + if [ -n "$FILE" ]; then + U2204_FILE="$(echo "$FILE" | sed 's/_amd64/_u2204_amd64/')" + mv "$FILE" "$U2204_FILE" + FILE="$U2204_FILE" + fi chmod +x scripts/upload-release.sh - ./scripts/upload-release.sh "${TAG_NAME}-u2204" "$FILE" + ./scripts/upload-release.sh "$TAG_NAME" "$FILE" build-rpm: name: Build RPM Package