From 1a96edfd1c6b533feb609be3a157322ef3179291 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Sun, 4 Aug 2024 10:40:19 +0200 Subject: [PATCH] Skip Codecov on forks --- .github/workflows/continuous-integration.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index cc8e0ad..992ba72 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -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