File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,9 @@ jobs:
184
184
# This environment "npm" requires someone from
185
185
# coder/code-server-reviewers to approve the PR before this job runs.
186
186
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
187
190
runs-on : ubuntu-latest
188
191
steps :
189
192
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change 22
22
name : Docs preview
23
23
runs-on : ubuntu-20.04
24
24
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
25
28
steps :
26
29
- name : Cancel Previous Runs
27
30
uses : styfle/cancel-workflow-action@0.9.1
You can’t perform that action at this time.
0 commit comments