Skip to content

Commit

Permalink
Skip Codecov on forks (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
villfa authored Aug 4, 2024
1 parent 556a2ef commit b4eacea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ jobs:
- name: "List all coverage reports"
run: echo coverage_reports=./coverage/$(ls -m coverage/ | sed "s/, */,.\/coverage\//g") >> $GITHUB_ENV

- uses: codecov/codecov-action@v4
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v4
# No need to run this step on forks.
if: ${{ 'bmitch/churn-php' == github.repository }}
with:
files: ./coverage.xml,${{ env.coverage_reports }}
fail_ci_if_error: true
Expand Down

0 comments on commit b4eacea

Please sign in to comment.