Skip to content

Commit 47a4a8b

Browse files
authored
[CI] Don't run on PRs from forks a job which requires accessing a secret (#661)
Also, fix name of input to codecov steps.
1 parent 72103dd commit 47a4a8b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/Test.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ jobs:
7373
with:
7474
token: ${{ secrets.CODECOV_TOKEN }}
7575
fail_ci_if_error: false
76-
file: lcov.info
76+
files: lcov.info
7777

7878
# fetching builds from Buildkite
7979
buildkite_test:
8080
name: Julia ${{ matrix.version }} ${{ matrix.build }} ${{ matrix.llvm_args }}
8181
runs-on: ${{ matrix.os }}
82+
# This job requires accessing a secret, which isn't available in PRs from
83+
# forks. Skip this job entirely if it's a pull request from a fork.
84+
if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }}
8285
strategy:
8386
fail-fast: false
8487
matrix:
@@ -121,4 +124,4 @@ jobs:
121124
with:
122125
token: ${{ secrets.CODECOV_TOKEN }}
123126
fail_ci_if_error: false
124-
file: lcov.info
127+
files: lcov.info

0 commit comments

Comments
 (0)