From f4aad777e637851ac8d9cd3ce0f8c6ebe5485c32 Mon Sep 17 00:00:00 2001 From: Huy Do Date: Thu, 14 Nov 2024 12:17:37 -0800 Subject: [PATCH] Skip building Apple demo app on fork PRs --- .github/workflows/apple.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/apple.yml b/.github/workflows/apple.yml index 16b58669c8e..26e716bcb4e 100644 --- a/.github/workflows/apple.yml +++ b/.github/workflows/apple.yml @@ -28,6 +28,8 @@ concurrency: jobs: build-demo-ios: name: build-demo-ios + # NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway + if: ${{ !github.event.pull_request.head.repo.fork }} uses: pytorch/test-infra/.github/workflows/macos_job.yml@main secrets: inherit with: @@ -219,6 +221,8 @@ jobs: build-benchmark-app: name: build-benchmark-app + # NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway + if: ${{ !github.event.pull_request.head.repo.fork }} uses: pytorch/test-infra/.github/workflows/macos_job.yml@main secrets: inherit with: