Skip to content

Commit ec24eb8

Browse files
only upload to codecov if main
1 parent eba1551 commit ec24eb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Test
3838
run: dotnet test src/${{ env.PROJECT_NAME }}.sln -c Release --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=../coverage/
3939
- uses: codecov/codecov-action@v2
40-
if: ${{ github.event_name == 'push' }}
40+
if: github.ref == 'refs/heads/main'
4141
with:
4242
token: ${{ secrets.CODECOV_TOKEN }}
4343
directory: src/coverage

0 commit comments

Comments
 (0)