Skip to content

Commit

Permalink
using github.event_name
Browse files Browse the repository at this point in the history
  • Loading branch information
loreloc committed Nov 11, 2024
1 parent b44a633 commit b215d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b215d94

Please sign in to comment.