From f7649898fda5c58324e9b931387a16437da995af Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Mon, 12 Oct 2026 01:14:30 +0800 Subject: [PATCH] fix(ci): honor build-only for manually dispatched tag refs --- .github/workflows/build.yaml | 4 ++-- docs/diagnostics.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2fb49ed..516a99a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -786,7 +786,7 @@ jobs: ${{ matrix.workspace }}/gp/.build/${{ matrix.artifact_dir }}/artifacts/* gh-release: - if: ${{ always() && ((github.event_name == 'workflow_dispatch' && !inputs.build_only) || startsWith(github.ref, 'refs/tags/')) }} + if: ${{ always() && ((github.event_name == 'workflow_dispatch' && !inputs.build_only) || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))) }} runs-on: ubuntu-latest permissions: actions: read @@ -942,7 +942,7 @@ jobs: needs: - test-gp - build-docker-image - if: ${{ (github.event_name == 'workflow_dispatch' && !inputs.build_only) || startsWith(github.ref, 'refs/tags/') }} + if: ${{ (github.event_name == 'workflow_dispatch' && !inputs.build_only) || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 diff --git a/docs/diagnostics.md b/docs/diagnostics.md index ef2a603..bc6b2b1 100644 --- a/docs/diagnostics.md +++ b/docs/diagnostics.md @@ -31,7 +31,7 @@ gpclient diagnostics --json --output diagnostics.json The collector refuses to overwrite an existing file. Choose another filename or remove the previous report yourself before collecting again. -This command is being added after 3.0.1. If your installed version says the +This command is available in 3.0.2 and later. If your installed version says the command is unknown, use the standalone script below. You do not need to upgrade before reporting a problem.