fix(ci): use github.ref_name for tag detection (gitea.ref not available in runner) #1640

Merged
xiaoxia merged 1 commits from fix/ci-ref-name-tag-detection into develop 2026-09-03 13:22:51 +08:00
+3 -3
View File
@@ -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