From 7da3e9ce47ec36ee5fd248e70cc3270ed555fd25 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Thu, 3 Sep 2026 13:11:14 +0800 Subject: [PATCH] fix(ci): use github.ref_name instead of gitea.ref for tag detection --- .gitea/workflows/ci-pipeline.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci-pipeline.yml b/.gitea/workflows/ci-pipeline.yml index 77e03955a..f5d15942b 100755 --- a/.gitea/workflows/ci-pipeline.yml +++ b/.gitea/workflows/ci-pipeline.yml @@ -1462,7 +1462,7 @@ jobs: - unit-tests - frontend-lint - frontend-unit-test - if: startsWith(gitea.ref, 'refs/tags/v') || (github.event_name == 'push' && github.ref_name == 'main') + if: startsWith(github.ref_name, 'v') || (github.event_name == 'push' && github.ref_name == 'main') strategy: fail-fast: false matrix: @@ -1612,7 +1612,7 @@ jobs: concurrency: group: deploy-production-${{ gitea.ref }} cancel-in-progress: false - if: startsWith(gitea.ref, 'refs/tags/v') + if: startsWith(github.ref_name, 'v') needs: - build-production steps: @@ -1744,7 +1744,7 @@ jobs: name: Production Browser E2E runs-on: runtime-builder timeout-minutes: 15 - if: startsWith(gitea.ref, 'refs/tags/v') + if: startsWith(github.ref_name, 'v') needs: deploy-production steps: - name: Checkout code -- 2.54.0