Skip to content

Commit

Permalink
cifuzz: upload artifacts only when the "run fuzzers" step fails (#3733)
Browse files Browse the repository at this point in the history
Closes #3711
  • Loading branch information
evverx authored Apr 30, 2020
1 parent aec1054 commit 8ba4f3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/getting-started/continuous_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,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: 'example'
Expand All @@ -71,7 +72,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
Expand Down
3 changes: 2 additions & 1 deletion infra/cifuzz/example_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 'example'
Expand All @@ -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

0 comments on commit 8ba4f3a

Please sign in to comment.