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: