mirror of
https://github.com/creyD/autopep8_action.git
synced 2026-04-12 19:40:28 +02:00
Added no_commit option
This commit is contained in:
@@ -28,6 +28,10 @@ _git_changed() {
|
||||
echo "Running autopep8..."
|
||||
autopep8 -i -r $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autopep8!"
|
||||
|
||||
if $INPUT_NO_COMMIT; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if _git_changed;
|
||||
then
|
||||
if $INPUT_DRY; then
|
||||
|
||||
Reference in New Issue
Block a user