]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
cifuzz: don't upload artifacts when CIFuzz fails to build fuzz targets 2239/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 9 Jul 2020 04:22:40 +0000 (04:22 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Thu, 9 Jul 2020 06:02:48 +0000 (06:02 +0000)
It should address https://github.com/google/oss-fuzz/issues/3982

.github/workflows/main.yml

index 9309ba92f268b8e539784f3e27135bcd5d415a81..645c84f819742af0e6d1a36efe42c891666664af 100644 (file)
@@ -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