From b215d948d5f8837134aeef3a5efc868f56bd7705 Mon Sep 17 00:00:00 2001 From: loreloc Date: Mon, 11 Nov 2024 14:01:01 +0000 Subject: [PATCH] using github.event_name --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 43d6619c..28ae8069 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,7 @@ jobs: run: | ./scripts/coverage.sh --xml - name: Upload coverage reports to Codecov - if: ${{ github.event.push && (github.event.push.ref == github.event.repository.default_branch) && !github.event.pull_request }}$ + if: ${{ github.event_name == 'push' && github.event.push.ref == github.event.repository.default_branch }}$ uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }}