File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -100,4 +100,10 @@ jobs:
100100 - name : Check the Salesforce Code Analyzer outputs to determine whether to fail
101101 if : ${{ !cancelled() && steps.paths.outcome == 'success' && ( steps.run-code-analyzer.outputs.exit-code > 0 || steps.run-code-analyzer.outputs.num-sev1-violations > 0 || steps.run-code-analyzer.outputs.num-violations > 10 ) }}
102102 shell : bash
103- run : exit 1
103+ run : |
104+ echo "::error title=Code Analyzer failed with exit code: ${EXIT_CODE}::Number of Sev1 violations: ${NUM_SEV1_VIOLATIONS} (max 0). Number of violations: ${NUM_VIOLATIONS} (max 10)."
105+ exit 1
106+ env :
107+ EXIT_CODE : ${{ steps.run-code-analyzer.outputs.exit-code }}
108+ NUM_SEV1_VIOLATIONS : ${{ steps.run-code-analyzer.outputs.num-sev1-violations }}
109+ NUM_VIOLATIONS : ${{ steps.run-code-analyzer.outputs.num-violations }}
You can’t perform that action at this time.
0 commit comments