Skip to content

Commit 286ccef

Browse files
authored
Skip Samsung jobs that require secrests on forked PRs (#18064)
### Summary Don't run Samsung jobs which require secrets on forked PRs. They fail. It looks like they used to be disabled on forks, but this line ended up getting left commented out after the jobs were disabled and re-enabled. This PR restores it to the original state.
1 parent c6b9d34 commit 286ccef

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/pull.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,8 @@ jobs:
10571057
10581058
test-samsung-quantmodels-linux:
10591059
name: test-samsung-quantmodels-linux
1060-
# if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
1060+
# Skip this job if the pull request is from a fork (secrets are not available)
1061+
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
10611062
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
10621063
permissions:
10631064
id-token: write
@@ -1094,7 +1095,8 @@ jobs:
10941095
10951096
test-samsung-models-linux:
10961097
name: test-samsung-models-linux
1097-
# if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
1098+
# Skip this job if the pull request is from a fork (secrets are not available)
1099+
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
10981100
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
10991101
permissions:
11001102
id-token: write

0 commit comments

Comments
 (0)