From 719c33fa12e368663a24583af5d2ff456bb11a9d Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Tue, 28 Jul 2026 14:34:21 +0800 Subject: [PATCH] ci: fix CI_BRANCH ternary so PR builds skip upload gate (#1062) * ci: fix CI_BRANCH ternary so PR builds skip upload gate Signed-off-by: Andy Lee * ci: simplify CI_BRANCH expression comment Signed-off-by: Andy Lee --------- Signed-off-by: Andy Lee --- .github/workflows/build-standalone-on-merge.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build-standalone-on-merge.yaml b/.github/workflows/build-standalone-on-merge.yaml index f1ee750a..445abd0c 100644 --- a/.github/workflows/build-standalone-on-merge.yaml +++ b/.github/workflows/build-standalone-on-merge.yaml @@ -38,7 +38,4 @@ jobs: packages: write id-token: write with: - # For PR-triggered runs github.ref_name is "/merge" (not a real - # branch), which breaks the upload gate. Leave CI_BRANCH empty for PRs so - # the gate is skipped; use the real branch name for push events. - CI_BRANCH: ${{ github.event_name == 'pull_request' && '' || github.ref_name }} + CI_BRANCH: ${{ github.event_name == 'push' && github.ref_name || '' }}