Skip to content

Commit a76b723

Browse files
authored
ci(ci): only send coverage to coveralls on main (#506)
1 parent d61fa06 commit a76b723

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,7 @@ jobs:
142142
run: npm run test:unit:coverage
143143

144144
- name: Coveralls parallel
145-
if: >
146-
github.event_name == 'push' ||
147-
(github.event_name == 'pull_request' &&
148-
github.event.pull_request.head.repo.full_name == github.repository &&
149-
github.event.pull_request.user.login != 'dependabot[bot]')
145+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
150146
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
151147
with:
152148
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -156,11 +152,7 @@ jobs:
156152
coverage:
157153
name: Aggregate Coverage Calculations
158154
needs: unit-tests
159-
if: >
160-
github.event_name == 'push' ||
161-
(github.event_name == 'pull_request' &&
162-
github.event.pull_request.head.repo.full_name == github.repository &&
163-
github.event.pull_request.user.login != 'dependabot[bot]')
155+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
164156
runs-on: ubuntu-latest
165157
permissions:
166158
contents: read

0 commit comments

Comments
 (0)