Skip to content

Commit a1a8049

Browse files
committed
enable fail_on_error input
1 parent 4a7b41b commit a1a8049

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: "Python Code Style Action"
22
description: "This action helps python code to adhere to the celebrate coding standards."
33
inputs:
4-
github_token:
5-
description: ""
4+
fail_on_error:
5+
description: "Should the action fail if errors are found? [default: true]"
66
required: false
7-
default: ${{ github.token }}
7+
default: "true"
88
runs:
99
using: "composite"
1010
steps:
@@ -36,11 +36,12 @@ runs:
3636
- name: mypy
3737
uses: tsuyoshicho/action-mypy@v3.11.0
3838
with:
39-
target: ${{ steps.changes.outputs.addedOrModifiedPython }}
39+
target: ${{ steps.changes.outputs.addedOrModifiedPython_files }}
4040
reporter: ${{ steps.reporter-check.outputs.reporter }}
4141

4242
- name: pylint
4343
uses: dciborow/action-pylint@0.1.0
4444
with:
4545
glob_pattern: ${{ steps.changes.outputs.addedOrModifiedPython_files }}
4646
reporter: ${{ steps.reporter-check.outputs.reporter }}
47+
fail_on_error: ${{ inputs.fail_on_error }}

0 commit comments

Comments
 (0)