Skip to content

Commit 55a5c5a

Browse files
jrfnlkukulich
authored andcommitted
GH Actions: allow test runs to succeed on fork
As things were, test runs on forks (when the `master` branch in the fork is updated) would always fail on the "upload code coverage reports" step, as forks (justifiably) don't have access to the `CODECOV_TOKEN`. Fixed now by adding a condition for running that step.
1 parent 7b96966 commit 55a5c5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ jobs:
195195
run: bin/phing tests
196196

197197
- name: "Upload to Codecov.io"
198+
if: ${{ success() && github.event.repository.fork == false }}
198199
uses: codecov/codecov-action@v4
199200
with:
200201
token: "${{ secrets.CODECOV }}"

0 commit comments

Comments
 (0)