Skip to content

Commit bb304b1

Browse files
committed
fix git diff command to check for untracked files
1 parent f89e05f commit bb304b1

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/transifex-pull.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,13 @@ jobs:
6767
run: |
6868
git config --local user.email github-actions@github.com
6969
git config --local user.name "GitHub Action's update-translation job"
70+
- run: git add -N . ':!transifex-util.py'
7071
- name: Filter files
7172
run: |
72-
! git diff -I'^"POT-Creation-Date: ' \
73-
-I'^"Language-Team: ' \
74-
-I'^# ' -I'^"Last-Translator: ' \
75-
--exit-code \
73+
! git diff --cached -I'^"POT-Creation-Date: ' \
74+
-I'^"Language-Team: ' \
75+
-I'^# ' -I'^"Last-Translator: ' \
76+
--exit-code \
7677
&& echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || exit 0
7778
- run: git add . ':!transifex-util.py'
7879
- run: git commit -m 'Update translation from Transifex'

0 commit comments

Comments
 (0)