From 3ebbf5b67856caef777ec221093fdc1b3e40a638 Mon Sep 17 00:00:00 2001 From: Bryan Fawcett Date: Tue, 6 Oct 2026 16:31:54 +0800 Subject: [PATCH 1/2] ci: run the staging version job only on staging workflow_dispatch had no branch guard, so a manual run from main would tag main's HEAD as a staging beta pre-release. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GHjaH1Vt2dVLWU68iz8tFq Signed-off-by: Bryan Fawcett --- .github/workflows/staging-version.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/staging-version.yml b/.github/workflows/staging-version.yml index 4cc02fa..165f90d 100644 --- a/.github/workflows/staging-version.yml +++ b/.github/workflows/staging-version.yml @@ -18,6 +18,9 @@ permissions: jobs: version: + # A manual run started from main (the default in the Run workflow form) + # would tag main's HEAD as a staging beta. Only staging is versioned here. + if: github.ref == 'refs/heads/staging' uses: nyuchi/.github/.github/workflows/reusable-staging-release.yml@924e5b4d0983d31379aedbec02b990793f29c792 # main, 2026-10-04 with: bump: ${{ inputs.bump || '' }} From 4e7755e2dcb8faf48711854d80c3fcf629d4c9ae Mon Sep 17 00:00:00 2001 From: Bryan Fawcett Date: Tue, 6 Oct 2026 16:34:34 +0800 Subject: [PATCH 2/2] ci: run the staging version job on staging only Match the org-wide guard exactly: the if line directly under the job id. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GHjaH1Vt2dVLWU68iz8tFq Signed-off-by: Bryan Fawcett --- .github/workflows/staging-version.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/staging-version.yml b/.github/workflows/staging-version.yml index 165f90d..548c775 100644 --- a/.github/workflows/staging-version.yml +++ b/.github/workflows/staging-version.yml @@ -18,8 +18,6 @@ permissions: jobs: version: - # A manual run started from main (the default in the Run workflow form) - # would tag main's HEAD as a staging beta. Only staging is versioned here. if: github.ref == 'refs/heads/staging' uses: nyuchi/.github/.github/workflows/reusable-staging-release.yml@924e5b4d0983d31379aedbec02b990793f29c792 # main, 2026-10-04 with: