From: Evgeny Vereshchagin Date: Thu, 9 Jul 2020 04:22:40 +0000 (+0000) Subject: cifuzz: don't upload artifacts when CIFuzz fails to build fuzz targets X-Git-Tag: v1.4.7~118^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b9df5896fac693d093f3d9367e69d62467eb843;p=thirdparty%2Fzstd.git cifuzz: don't upload artifacts when CIFuzz fails to build fuzz targets It should address https://github.com/google/oss-fuzz/issues/3982 --- diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9309ba92f..645c84f81 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,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: 'zstd' @@ -17,7 +18,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