From b16ee9d52363f921dc25dbb64febab242ce061ac Mon Sep 17 00:00:00 2001 From: Trevin Chow Date: Sun, 7 Jun 2026 11:16:11 -0700 Subject: [PATCH] ci: gate release-cut to the canonical repo so it skips forks The cut job checks out main, bumps package.json's version, and fast-forwards main. On a fork with Actions enabled, the scheduled RC cut runs against the fork's main and diverges it on the version line every slot, so that contributor's PRs back to upstream conflict on package.json even when their change never touches it. Gate the job to github.repository == 'stablyai/orca' so it (and the jobs that depend on it) no-op on forks. Canonical scheduled and manual cuts are unaffected. --- .github/workflows/release-cut.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release-cut.yml b/.github/workflows/release-cut.yml index 909d24bd19df..e572613e029c 100644 --- a/.github/workflows/release-cut.yml +++ b/.github/workflows/release-cut.yml @@ -57,6 +57,11 @@ concurrency: jobs: cut: + # Why: this job bumps package.json and fast-forwards main. On a fork with + # Actions enabled, the scheduled cut would run against the fork's main and + # diverge it (version line) every slot, conflicting every PR back upstream. + # Gate to the canonical repo so the workflow no-ops on forks. + if: github.repository == 'stablyai/orca' runs-on: ubuntu-latest timeout-minutes: 15 outputs: