From ae8ce585096b3e55a287cb505136326e81affc76 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Sun, 11 Jun 2023 18:21:16 +0100 Subject: [PATCH] Don't try to upload coverage if CI is run via workflow dispatch on a fork --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 36e2bb9f..886c7c4c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,6 +42,7 @@ jobs: - name: "Upload coverage to Codecov" # if: "contains(env.USING_COVERAGE, matrix.python-version)" + if: github.repository == 'python-attrs/cattrs' uses: "codecov/codecov-action@v1" with: fail_ci_if_error: true