Skip to content

Commit 67af8ab

Browse files
committed
fix git add command to stage all changes
1 parent 08f9812 commit 67af8ab

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/transifex-pull.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,18 @@ jobs:
8080
run: |
8181
git config --local user.email github-actions@github.com
8282
git config --local user.name "GitHub Action's update-translation job"
83-
- run: git add -N . ':!transifex-util.py'
83+
- run: git add . ':!transifex-util.py'
84+
- name: Debug staged files
85+
run: |
86+
echo "== staged after git add =="
87+
git diff --cached --name-status -- . ':!transifex-util.py'
8488
- name: Filter files
8589
run: |
8690
! git diff --cached -I'^"POT-Creation-Date: ' \
8791
-I'^"Language-Team: ' \
8892
-I'^# ' -I'^"Last-Translator: ' \
8993
--exit-code \
9094
&& echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || exit 0
91-
- run: git add . ':!transifex-util.py'
9295
- run: git commit -m 'Update translation from Transifex'
9396
if: env.SIGNIFICANT_CHANGES == '1'
9497
- uses: ad-m/github-push-action@master

0 commit comments

Comments
 (0)