Use Codecov without tokens

They are only required for private repos.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2021-03-03 09:03:43 +01:00
parent 90a6f8b757
commit c4ceccf80c
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
2 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,6 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/coverage-final.json
flags: javascript
fail_ci_if_error: true

View File

@ -55,5 +55,8 @@ jobs:
run: composer run test
- name: Upload coverage to Codecov
if: ${{ matrix.nextcloud-versions == 'master' }}
working-directory: nextcloud/apps/calendar
run: curl -s https://codecov.io/bash | bash -s - -t ${{ secrets.CODECOV_TOKEN }} -F php -f clover.unit.xml -Z
uses: codecov/codecov-action@v1
with:
file: nextcloud/apps/calendar/clover.unit.xml
flags: php
fail_ci_if_error: true