mirror of
https://github.com/creyD/autopep8_action.git
synced 2026-04-12 19:40:28 +02:00
Added default value for dependency parameter
This commit is contained in:
@@ -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_message | :x: | 'Adjusted files for PEP-8 compliance' | Custom git commit message|
|
||||||
| commit_options | :x: | '*' | Custom git commit options|
|
| commit_options | :x: | '*' | Custom git commit options|
|
||||||
| file_pattern | :x: | '.' | Custom file pattern for `git add`|
|
| 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.|
|
| 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
|
### Example
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ inputs:
|
|||||||
dependencies:
|
dependencies:
|
||||||
description: Path for the repositories 'requirements.txt'. If you have none, you may skip this.
|
description: Path for the repositories 'requirements.txt'. If you have none, you may skip this.
|
||||||
required: false
|
required: false
|
||||||
default: 'false'
|
default: 'requirements.txt'
|
||||||
branch:
|
branch:
|
||||||
description: Branch which the changes are merged to
|
description: Branch which the changes are merged to
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
@@ -24,10 +24,7 @@ pip install -q --upgrade pip
|
|||||||
pip install -q autopep8
|
pip install -q autopep8
|
||||||
|
|
||||||
# Install custom project dependencies if applicable
|
# Install custom project dependencies if applicable
|
||||||
if ! ["$INPUT_DEPENDENCIES" = "false"];
|
pip install -r $INPUT_DEPENDENCIES
|
||||||
then
|
|
||||||
pip install -r $INPUT_DEPENDENCIES
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Apply PEP 8
|
# Apply PEP 8
|
||||||
echo "Running autopep8..."
|
echo "Running autopep8..."
|
||||||
|
|||||||
Reference in New Issue
Block a user