ci: invert if

This commit is contained in:
Kieran 2023-10-06 13:31:10 +01:00
parent fb28f5d7df
commit 2a6433a6b4
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

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