Skip to content

Commit e8d232b

Browse files
committed
Commit only significant changes
1 parent 2a26c24 commit e8d232b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/update-lint-and-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@ jobs:
3636
TX_TOKEN: ${{ secrets.TX_TOKEN }}
3737
- run: git config --local user.email github-actions@github.com
3838
- run: git config --local user.name "GitHub Action's update-translation job"
39+
- run: >
40+
if [$(git diff --ignore-matching-lines='^"POT-Creation-Date: ' | wc -l) -ne 0 ]; then export SIGNIFICANT_CHANGES=1; fi
3941
- run: git add .
4042
- run: git commit -m 'Update translation from Transifex' || true
43+
if: env.SIGNIFICANT_CHANGES
4144
- uses: ad-m/github-push-action@master
45+
if: env.SIGNIFICANT_CHANGES
4246
with:
4347
branch: ${{ matrix.version }}
4448
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)