Skip to content

Commit f982112

Browse files
committed
adjust the codacy upload to not run if key missing
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
1 parent d42d2c0 commit f982112

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ jobs:
6161
run: |
6262
poetry run pytest --cov-report=xml
6363
- name: Run codacy-coverage-reporter
64-
if: ${{ env.SKIP_COVERAGE_UPLOAD != 'true'}}
64+
env:
65+
CODACY_CONFIGURED: ${{ secrets.CODACY_PROJECT_TOKEN }}
66+
if: ${{ env.CODACY_CONFIGURED != ''}}
6567
uses: codacy/codacy-coverage-reporter-action@v1
6668
continue-on-error: true
6769
with:

0 commit comments

Comments
 (0)