Skip to content

Commit d060426

Browse files
authored
Skip building Apple demo app on fork PRs (#6865)
1 parent 53caede commit d060426

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/apple.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ concurrency:
2828
jobs:
2929
build-demo-ios:
3030
name: build-demo-ios
31+
# NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway
32+
if: ${{ !github.event.pull_request.head.repo.fork }}
3133
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
3234
secrets: inherit
3335
with:
@@ -219,6 +221,8 @@ jobs:
219221
220222
build-benchmark-app:
221223
name: build-benchmark-app
224+
# NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway
225+
if: ${{ !github.event.pull_request.head.repo.fork }}
222226
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
223227
secrets: inherit
224228
with:

0 commit comments

Comments
 (0)