From e2adb58885c65040528e21d7f35832290cfb0440 Mon Sep 17 00:00:00 2001 From: agent-kit-startup <273612197+agent-kit-startup@users.noreply.github.com> Date: Thu, 3 Dec 2026 11:54:39 -0300 Subject: [PATCH] ci: run the hygiene job on a self-hosted runner when one is configured The hygiene job now reads its runner from the repository variable CI_RUNNER, a JSON list of labels such as ["android-arm64"]. Without the variable it runs on ubuntu-latest, as before. A pull request from a fork always goes to ubuntu-latest; the protection against fork code stays the repository setting that requires approval for all external contributors. The test job stays on ubuntu-latest. --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54094a4..a0de728 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,12 @@ jobs: - name: Board tests run: python -m unittest discover -s board/tests -t board -v + # Runs on the self-hosted runner named in the repository variable CI_RUNNER (a JSON list of labels, e.g. + # ["android-arm64"]) and on ubuntu-latest when the variable is not set. A pull request from a fork always + # goes to ubuntu-latest. That line is routing, not protection: the protection is the repository setting + # "Require approval for all external contributors" (docs/public-repos.md). hygiene: - runs-on: ubuntu-latest + runs-on: ${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || fromJSON(vars.CI_RUNNER || '"ubuntu-latest"') }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: