Skip to content

Commit

Permalink
[ci] send coverage only from master builds
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Dec 30, 2020
1 parent 59383e1 commit 543f2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ name: ci
pull_request:
branches:
- master
create:
create:
jobs:
tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
run: bundle exec rake
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@master
if: env.COVERAGE == 'true' && env.COVERAGE_TOKEN != ''
if: github.ref == 'refs/heads/master' && env.COVERAGE == 'true' && env.COVERAGE_TOKEN != ''
with:
project-token: "${{secrets.CODACY_PROJECT_TOKEN}}"
coverage-reports: coverage/coverage.xml
Expand Down

0 comments on commit 543f2e2

Please sign in to comment.