diff --git a/README.md b/README.md index eb91778..59c7b49 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index 148588f..f45f6dc 100644 --- a/action.yml +++ b/action.yml @@ -29,6 +29,7 @@ inputs: autoparameters: description: Parameters for autopep8 required: false + default: '' runs: using: 'docker' diff --git a/entrypoint.sh b/entrypoint.sh index 13e7a2c..4555503 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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