Renamed autoparameters to options

This commit is contained in:
2020-05-06 10:14:06 +02:00
parent 8fa1e16ff1
commit 90bfa73dca
3 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ The following parameters can be used in your custom action configuration.
| file_pattern | :x: | '*' | Custom file pattern for `git add`|
| dependencies | :x: | 'requirements.txt' | Path for the repositories 'requirements.txt'. If you have none, you may skip this.|
| checkpath | :x: | '.' | The path autopep8 checks |
| autoparameters | :x: | ' ' | Parameters to use with autopep8 |
| options | :x: | ' ' | Parameters to use with autopep8 |
| dry | :x: | false | Dry-run the action to fail when detecting PEP-8 uncompliant files, instead of automatically fixing them. |

View File

@@ -12,7 +12,7 @@ inputs:
description: Commit options
required: false
file_pattern:
description: File pattern used for "git add"
description: File pattern used for `git add`
required: false
default: '*'
dependencies:
@@ -23,7 +23,7 @@ inputs:
description: Path autopep8 checks
required: false
default: '.'
autoparameters:
options:
description: Parameters for autopep8
required: false
default: ''

View File

@@ -35,7 +35,7 @@ pip install -r $INPUT_DEPENDENCIES || echo "No dependency file found."
# Apply PEP 8
echo "Running autopep8..."
autopep8 -i -r $INPUT_CHECKPATH $INPUT_AUTOPARAMETERS || echo "Problem running autopep8!"
autopep8 -i -r $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autopep8!"
if _git_changed;
then