fix(ci): harden release job condition (avoid stuck 'blocked')

A bare `if: github.ref_type == 'tag'` on a needs-dependent job can
leave `release` stuck in "blocked" instead of skipped for
workflow_dispatch runs on Gitea. Use the explicit
${{ github.event_name == 'push' && github.ref_type == 'tag' }} form.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Simone
2026-05-17 21:08:49 +02:00
parent 4f22d11a84
commit 3d3b00c71b
+4 -1
View File
@@ -55,7 +55,10 @@ jobs:
# Requires a GITEA_TOKEN secret with repo write permissions. # Requires a GITEA_TOKEN secret with repo write permissions.
release: release:
needs: build needs: build
if: github.ref_type == 'tag' # Tag pushes only. Explicit ${{ }} + event gate: a bare
# `if: github.ref_type == 'tag'` can leave the job stuck "blocked"
# (instead of skipped) on Gitea for workflow_dispatch runs.
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
runs-on: windows-build runs-on: windows-build
steps: steps: