Skip to content

Commit 4b6eb46

Browse files
author
Tyler Zhao
committed
Coverity workflow fix for non-zero exit code when grep finds no match
1 parent a8e01bf commit 4b6eb46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/coverity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- run: cov-analyze --config config.xml --dir results --concurrency --security --rule --enable-constraint-fpp --enable-fnptr --enable-virtual
6868
- run: cov-format-errors --text-output-style multiline --dir results --filesort --file "$PWD" --strip-path "$PWD" > cov-errors.txt
6969
- run: cat cov-errors.txt
70-
- run: count=$(grep -c '^$' cov-errors.txt) && echo "$(( $count / 2 ))"
70+
- run: count=$(grep -c '^$' cov-errors.txt) || true && echo "$(( $count / 2 ))"
7171
- uses: actions/upload-artifact@v3
7272
with:
7373
name: fpga-runtime-for-opencl-${{ github.sha }}-coverity-${{ github.run_id }}

0 commit comments

Comments
 (0)