From 0c2a68ecdb59dc929ec7119cd1bd3bd95888c2de Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 6 Oct 2026 02:07:54 -0400 Subject: [PATCH] Release workflow: build only on the release branch Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c85b4f..11616f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,9 @@ env: jobs: version: name: version + # Only the release branch builds (a manual dispatch from any other ref skips everything). The + # branch itself is writable only by release-managers and org admins (ruleset "release"). + if: github.ref == 'refs/heads/release' runs-on: ubuntu-latest environment: release outputs: