Skip to content

Commit 4837868

Browse files
committed
Commit only significant changes, fix
Add negation to recognize significant changes (true) instead of failing on them, add OR true to not fail the whole workflow
1 parent cff5790 commit 4837868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- run: git config --local user.email github-actions@github.com
3838
- run: git config --local user.name "GitHub Action's update-translation job"
3939
- run: >
40-
git diff --ignore-matching-lines='^"POT-Creation-Date: ' --exit-code && echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV
40+
! git diff --ignore-matching-lines='^"POT-Creation-Date: ' --exit-code && echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || return 0
4141
- run: git add .
4242
- run: git commit -m 'Update translation from Transifex' || true
4343
if: env.SIGNIFICANT_CHANGES

0 commit comments

Comments
 (0)