From 9db85644563505a461005a943b9f7eff0d975fc2 Mon Sep 17 00:00:00 2001 From: khiav reoy Date: Sat, 2 Sep 2023 23:22:25 +0800 Subject: [PATCH] Skip the step of publishing code coverage for the PR from forked repos --- .github/workflows/ruby.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index f28d5a9..d2604e3 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -113,7 +113,7 @@ jobs: - name: Run tests run: bundle exec rake - name: Publish code coverage - if: ${{ success() }} + if: ${{ success() && env.CC_TEST_REPORTER_ID }} uses: paambaati/codeclimate-action@v2.7.5 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}