From ef98d5b4e84d6087b9a1bdd9224a78facebab1af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 24 Oct 2022 20:39:29 +0000 Subject: [PATCH] Do not run Coveralls in PR-s (#1379) when the secret token is not available Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d13eb2151..a9396f7cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,7 +138,7 @@ jobs: - name: Coveralls run: vendor/bin/php-coveralls -v --coverage_clover='clover.xml' --json_path='coveralls-upload.json' - if: matrix.php-version == '8.1' && matrix.env == 'AUTOLOAD=1' + if: env.COVERALLS_REPO_TOKEN && matrix.php-version == '8.1' && matrix.env == 'AUTOLOAD=1' env: COVERALLS_RUN_LOCALLY: 1 COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}