Fix crowdin command to ignore no-changes

This commit is contained in:
Kieran 2023-10-06 13:26:35 +01:00
parent cb8fec85c3
commit fb28f5d7df
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -95,8 +95,13 @@ steps:
- npx @crowdin/cli pull -b main -T $CTOKEN
- yarn prettier --write .
- git add .
- 'git commit -a -m "chore: Update translations"'
- git push -u origin main
- |
if output=$(git status --porcelain) && [ -z "$output" ]; then
# Working directory clean
else
git commit -a -m "chore: Update translations"
git push -u origin main
fi
volumes:
- name: cache
claim: