diff --git a/.github/workflows/build-standalone-on-merge.yaml b/.github/workflows/build-standalone-on-merge.yaml index efe23afc..37de28e8 100644 --- a/.github/workflows/build-standalone-on-merge.yaml +++ b/.github/workflows/build-standalone-on-merge.yaml @@ -13,23 +13,13 @@ on: - '*-dev' types: - merged - - labeled jobs: build-validation: name: Build Test - # allow triggering when a PR is labeled with "build-artifact" - if: >- - github.event_name != 'pull_request' || - github.event.action != 'labeled' || - github.event.label.name == 'build-artifact' uses: ./.github/workflows/run-lint.yaml build: name: Build and Upload Package - if: >- - github.event_name != 'pull_request' || - github.event.action != 'labeled' || - github.event.label.name == 'build-artifact' uses: ./.github/workflows/build-and-publish-standalone.yaml needs: - build-validation @@ -38,7 +28,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 == 'push' && github.ref_name || '' }} + CI_BRANCH: ${{github.ref_name}}