From 7c397232fb59467d3f8baf655b8ab2f70794ea9c Mon Sep 17 00:00:00 2001 From: ehonis Date: Fri, 16 Oct 2026 09:55:46 -0400 Subject: [PATCH] CI: run on the owner's runner in the private repo Published from the private repository by oss-sync. - CI: run on the owner's runner in the private repo 2 files changed, 8 insertions(+), 2 deletions(-) --- .github/workflows/ci.yml | 8 +++++++- .github/workflows/deploy.yml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39bb026..f6f99d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,15 @@ on: push: branches: [main] +# The private repo runs on the owner's own runner (label `box`); the public copy +# keeps GitHub's hosted runner. A new push to a PR cancels the run it replaces. +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: check: - runs-on: ubuntu-latest + runs-on: ${{ github.event.repository.private && 'box' || 'ubuntu-latest' }} defaults: run: working-directory: app diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a7803d1..14e9ad4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -130,7 +130,7 @@ jobs: iphone: needs: server if: needs.server.outputs.mobile == 'true' && vars.EAS_PROJECT_ID != '' - runs-on: ubuntu-latest + runs-on: ${{ github.event.repository.private && 'box' || 'ubuntu-latest' }} timeout-minutes: 30 env: EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}