From: Evgeny Vereshchagin Date: Wed, 29 Apr 2020 05:04:56 +0000 (+0000) Subject: cifuzz: upload artifacts only when the "run fuzzers" step fails X-Git-Tag: v246-rc1~461 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9494b39dac37894628cf5ef405e6bbc18f69bba9;p=thirdparty%2Fsystemd.git cifuzz: upload artifacts only when the "run fuzzers" step fails --- diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e30133722a7..24715cb9506 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Build Fuzzers + id: build uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master with: oss-fuzz-project-name: 'systemd' @@ -21,7 +22,7 @@ jobs: dry-run: false - name: Upload Crash uses: actions/upload-artifact@v1 - if: failure() + if: failure() && steps.build.outcome == 'success' with: name: artifacts path: ./out/artifacts