ci(coverity): output the build log upon error

It is quite helpful to know what Coverity said, exactly, in case it fails to analyze the code. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jun 11, 2025 at 15:54 UTC 3cc4fc1ebd5003ea0d88684d419cb750f487e352
1 file changed +5 -1
.github/workflows/coverity.yml
+5 -1
@@ -149,7 +149,11 @@ jobs:
149 run: |
150 export PATH="$PATH:$RUNNER_TEMP/cov-analysis/bin" &&
151 cov-configure --gcc &&
152 - cov-build --dir cov-int make
152 + if ! cov-build --dir cov-int make
153 + then
154 + cat cov-int/build-log.txt
155 + exit 1
156 + fi
157 - name: package the build
158 run: tar -czvf cov-int.tgz cov-int
159 - name: submit the build to Coverity Scan