Bugfix for autoparameter issue

This commit is contained in:
2019-11-17 23:58:59 +01:00
parent 4a8632c121
commit f84db99f70
3 changed files with 3 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ The following parameters can be used in your custom action configuration.
| dependencies | :x: | 'requirements.txt' | Path for the repositories 'requirements.txt'. If you have none, you may skip this.|
| branch | :white_check_mark: | - | The specific branch you want to merge into. Use ${{ github.head_ref }} if you want to use this with pull requests. |
| checkpath | :x: | '.' | The path autopep8 checks |
| autoparameters | :x: | - | Parameters to use with autopep8 |
| autoparameters | :x: | ' ' | Parameters to use with autopep8 |
### Example

View File

@@ -29,6 +29,7 @@ inputs:
autoparameters:
description: Parameters for autopep8
required: false
default: ''
runs:
using: 'docker'

View File

@@ -28,7 +28,7 @@ pip install -r $INPUT_DEPENDENCIES || echo "No dependency file found."
# Apply PEP 8
echo "Running autopep8..."
autopep8 -i -r "$INPUT_CHECKPATH" ${INPUT_AUTOPARAMETERS:+"$INPUT_AUTOPARAMETERS"} || echo "Problem running autopep8."
autopep8 -i -r $INPUT_CHECKPATH $INPUT_AUTOPARAMETERS || echo "Problem running autopep8!"
if ! git diff --quiet
then