File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,9 @@ jobs:
184184 # This environment "npm" requires someone from
185185 # coder/code-server-reviewers to approve the PR before this job runs.
186186 environment : npm
187+ # Only run if PR comes from base repo
188+ # Reason: forks cannot access secrets and this will always fail
189+ if : github.event.pull_request.head.repo.full_name == github.repository
187190 runs-on : ubuntu-latest
188191 steps :
189192 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change 2222 name : Docs preview
2323 runs-on : ubuntu-20.04
2424 environment : CI
25+ # Only run if PR comes from base repo
26+ # Reason: forks cannot access secrets and this will always fail
27+ if : github.event.pull_request.head.repo.full_name == github.repository
2528 steps :
2629 - name : Cancel Previous Runs
2730 uses : styfle/cancel-workflow-action@0.9.1
You can’t perform that action at this time.
0 commit comments