diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1595a214b..aaa19332b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -90,10 +90,12 @@ jobs: - name: Run codacy-coverage-reporter uses: codacy/codacy-coverage-reporter-action@master + env: + SECRETS_AVAILABLE: ${{ secrets.CODACY_PROJECT_TOKEN != '' }} with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} coverage-reports: coverage.xml - if: matrix.os == 'ubuntu' + if: ${{ matrix.os == 'ubuntu' && env.SECRETS_AVAILABLE == 'true' }} behave: runs-on: ${{ matrix.os }}-latest