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 }}