From 0c572c85ec862484abb26eabaa95395206b0f2fc Mon Sep 17 00:00:00 2001 From: Tran Duc Anh Dang Date: Sat, 14 Nov 2026 16:36:07 +1100 Subject: [PATCH] ci: run the commit-message check on local runners behind CI_RUNNER The job moves to the self-hosted orbyn-local runners only when the repository variable CI_RUNNER is 'local' and the pull request is not from a fork. With the variable unset nothing changes. The site job needs Docker, and the result job is the required aggregate, so both stay hosted. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 727d6825..80237d8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,9 @@ jobs: commit-messages: name: No AI attribution trailers if: ${{ github.event_name == 'pull_request' }} - runs-on: ubuntu-latest + # Runs on the local runners only when the repository variable CI_RUNNER is + # "local" and the pull request is not from a fork. Otherwise it stays hosted. + runs-on: ${{ (vars.CI_RUNNER == 'local' && github.event.pull_request.head.repo.fork != true) && fromJSON('["self-hosted","orbyn-local"]') || 'ubuntu-latest' }} timeout-minutes: 5 steps: - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6