mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-15 21:00:35 +02:00
@@ -50,7 +50,8 @@ if _git_changed; then
|
|||||||
_git_setup
|
_git_setup
|
||||||
|
|
||||||
if $INPUT_ONLY_CHANGED; then
|
if $INPUT_ONLY_CHANGED; then
|
||||||
for file in $(git diff --name-only HEAD^..HEAD)
|
# --diff-filter=d excludes deleted files
|
||||||
|
for file in $(git diff --name-only --diff-filter=d HEAD^..HEAD)
|
||||||
do
|
do
|
||||||
git add $file
|
git add $file
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user