From 9494b39dac37894628cf5ef405e6bbc18f69bba9 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Wed, 29 Apr 2020 05:04:56 +0000 Subject: [PATCH] cifuzz: upload artifacts only when the "run fuzzers" step fails --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e30133722a..24715cb950 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