mirror of
https://github.com/creyD/autopep8_action.git
synced 2026-04-18 22:30:32 +02:00
Added error catch for the dependency option
This commit is contained in:
@@ -24,11 +24,11 @@ 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
|
||||||
pip install -r $INPUT_DEPENDENCIES
|
pip install -r $INPUT_DEPENDENCIES || echo "No dependency file found."
|
||||||
|
|
||||||
# Apply PEP 8
|
# Apply PEP 8
|
||||||
echo "Running autopep8..."
|
echo "Running autopep8..."
|
||||||
autopep8 --in-place -r .
|
autopep8 --in-place -r . || echo "Problem running autopep8."
|
||||||
|
|
||||||
if ! git diff --quiet
|
if ! git diff --quiet
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user