From a29b7e15bc71054f5c23358584f3bfeec82d11cb Mon Sep 17 00:00:00 2001 From: CheckPickerUpper Date: Mon, 17 Aug 2026 12:17:35 -0400 Subject: [PATCH] ci: gate hosted workflows behind a CI_ENABLED switch The Actions minute budget is exhausted for the next month, so every hosted job needs one switch that turns them off without deleting the gate. CI_ENABLED is read as "not false", so an absent variable keeps CI running. A fresh clone therefore gets the contracts rather than silence, and pausing is an explicit, visible opt-out in repository settings. Claude-Session: https://claude.ai/code/session_01WuRrc3VMHiR8Qik1Sxj3zM --- .github/workflows/compiler-contracts.yml | 4 ++++ .github/workflows/pr-body-contract.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/compiler-contracts.yml b/.github/workflows/compiler-contracts.yml index b691162..8f24e6d 100644 --- a/.github/workflows/compiler-contracts.yml +++ b/.github/workflows/compiler-contracts.yml @@ -15,6 +15,10 @@ concurrency: jobs: validate: + # Set the CI_ENABLED repository variable to 'false' to pause hosted runs + # while the Actions minute budget is exhausted. Absent means enabled, so a + # fresh clone gets the gate rather than silence. + if: vars.CI_ENABLED != 'false' name: Rust and Luau integration contracts runs-on: ubuntu-24.04 timeout-minutes: 20 diff --git a/.github/workflows/pr-body-contract.yml b/.github/workflows/pr-body-contract.yml index a6c9b27..fe5c890 100644 --- a/.github/workflows/pr-body-contract.yml +++ b/.github/workflows/pr-body-contract.yml @@ -9,6 +9,9 @@ permissions: jobs: validate: + # Shares the CI_ENABLED switch with the compiler contracts so "CI is off" + # means every hosted job, not a subset. Absent means enabled. + if: vars.CI_ENABLED != 'false' name: Require linked work, behavior, and proof runs-on: ubuntu-latest timeout-minutes: 2