chore(ci): Do not upload artifacts when fork (#573)

Do not upload artifacts when fork
This commit is contained in:
Anatolios Laskaris 2023-04-10 13:29:36 +03:00 committed by GitHub
parent 7d37c36d00
commit fe08a3846b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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