diff --git a/README.md b/README.md index 2f7e50c..c4e1279 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The following parameters can be used in your custom action configuration. | commit_message | :x: | 'Adjusted files for PEP-8 compliance' | Custom git commit message| | commit_options | :x: | '*' | Custom git commit options| | file_pattern | :x: | '.' | Custom file pattern for `git add`| -| dependencies | :x: | 'false' | Path for the repositories 'requirements.txt'. If you have none, you may skip this.| +| 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.| ### Example diff --git a/action.yml b/action.yml index f72af2d..778dcc5 100644 --- a/action.yml +++ b/action.yml @@ -18,7 +18,7 @@ inputs: dependencies: description: Path for the repositories 'requirements.txt'. If you have none, you may skip this. required: false - default: 'false' + default: 'requirements.txt' branch: description: Branch which the changes are merged to required: true diff --git a/entrypoint.sh b/entrypoint.sh index f7c5472..429f9be 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -24,10 +24,7 @@ pip install -q --upgrade pip pip install -q autopep8 # Install custom project dependencies if applicable -if ! ["$INPUT_DEPENDENCIES" = "false"]; -then - pip install -r $INPUT_DEPENDENCIES -fi +pip install -r $INPUT_DEPENDENCIES # Apply PEP 8 echo "Running autopep8..."