From f8d2f0a9d6c928c8190daf9573f3d627bb01987f Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 16:58:55 +0800 Subject: [PATCH] ci(release): run full 2.9.0 promotion preflight on PR; only tag on verified main --- .github/workflows/release-v2.9.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-v2.9.yml b/.github/workflows/release-v2.9.yml index b80bd8e..07a4ed4 100644 --- a/.github/workflows/release-v2.9.yml +++ b/.github/workflows/release-v2.9.yml @@ -10,6 +10,14 @@ on: - "Cargo.toml" - "doc/releases/v2.9.0.md" - ".github/workflows/release-v2.9.yml" + pull_request: + paths: + - "Cargo.toml" + - "Cargo.lock" + - "crates/marqdo-wasm/Cargo.toml" + - "ext/VERSION" + - "doc/releases/v2.9.0.md" + - ".github/workflows/release-v2.9.yml" workflow_dispatch: permissions: contents: write @@ -19,7 +27,6 @@ concurrency: cancel-in-progress: false jobs: verify-and-dispatch: - if: github.repository == 'cflmy/marqdo' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -66,6 +73,7 @@ jobs: cargo test --locked --test executable_knowledge cargo test --locked --test release_handbook - name: Create v2.9.0 only once and dispatch full platform release + if: github.repository == 'cflmy/marqdo' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' env: GH_TOKEN: ${{ github.token }} run: |