We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b43ce79 commit eb0ea31Copy full SHA for eb0ea31
1 file changed
action.yml
@@ -19,6 +19,10 @@ inputs:
19
comma-separated list of checks that will be promoted to errors.
20
required: false
21
default: ""
22
+ fail-on-warning:
23
+ description: ""
24
+ required: false
25
+ default: false
26
extra-arg:
27
description: |
28
Additional argument to append to the compiler command line.
@@ -156,7 +160,12 @@ runs:
156
160
run: |
157
161
PATH=~/.local/clazy/bin:$PATH "$GITHUB_ACTION_PATH/clazy.sh"
158
162
163
+ - name: Exit if warning
164
+ if: ${{ inputs.fail-on-warning == 'true' && steps.clazy-check.outputs.warnings-count > 0}}
165
+ shell: bash
166
+ run: exit 1
167
+
159
168
- name: Exit if error
- if: ${{steps.clazy-check.outputs.errors-count > 0 }}
169
+ if: ${{ steps.clazy-check.outputs.errors-count > 0 }}
170
shell: bash
171
run: exit 1
0 commit comments