From 2a6433a6b4fbb00f724d7c9ef0115a68b3a7d11f Mon Sep 17 00:00:00 2001 From: Kieran Date: Fri, 6 Oct 2023 13:31:10 +0100 Subject: [PATCH] ci: invert if --- .drone.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index a37b965c3..412d6cd1c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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