From fe08a3846bbd740ebfe9f4703ac9e1462bf06364 Mon Sep 17 00:00:00 2001 From: Anatolios Laskaris Date: Mon, 10 Apr 2023 13:29:36 +0300 Subject: [PATCH] chore(ci): Do not upload artifacts when fork (#573) Do not upload artifacts when fork --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 59efda3c..ce9087b9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -74,7 +74,7 @@ jobs: path-to-lcov: lcov.info - name: Archive code coverage results - if: inputs.cargo-dependencies == 'null' + if: inputs.cargo-dependencies == 'null' && !github.event.pull_request.head.repo.fork uses: actions/upload-artifact@v3 with: name: code-coverage-report.zip @@ -82,7 +82,7 @@ jobs: - name: Upload test report uses: dorny/test-reporter@v1 - if: success() || failure() + if: (success() || failure()) && !github.event.pull_request.head.repo.fork with: name: aquavm report path: target/nextest/ci/junit.xml