]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cifuzz: upload artifacts only when the "run fuzzers" step fails
authorEvgeny Vereshchagin <evvers@ya.ru>
Wed, 29 Apr 2020 05:04:56 +0000 (05:04 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 2 May 2020 09:20:30 +0000 (11:20 +0200)
.github/workflows/main.yml

index e30133722a7c4b8774b043640b29ae71287c0a64..24715cb9506e7555b3b209d51071db3aa60a2262 100644 (file)
@@ -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