From 32a5a9434eaf441027321fdb15db876ebe44d1c9 Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 15 May 2023 10:54:06 +0100 Subject: [PATCH] chore: update drone.yml --- .drone.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3553d505..d8858b99 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,27 +5,23 @@ name: crowdin metadata: namespace: git steps: - - name: Update Translations - image: crowdin/cli - environment: - TOKEN: - from_secret: crowdin_token - commands: - - crowdin upload -b main -T $TOKEN - - crowdin pull -b main -T $TOKEN - - name: Push changes + - name: Push/Pull translations image: node:current-bullseye environment: TOKEN: from_secret: drone_gitea + CTOKEN: + from_secret: crowdin_token commands: - - yarn install - - yarn workspace @snort/app format + - git checkout -B lang - git config --global user.email drone@v0l.io - git config --global user.name "Drone CI" - git remote set-url origin https://drone:$TOKEN@git.v0l.io/Kieran/snort.git + - yarn install + - npx @crowdin/cli upload -b main -T $CTOKEN + - npx @crowdin/cli pull -b main -T $CTOKEN + - yarn workspace @snort/app format - git diff - - git checkout -B lang - git commit -a -m "Update translations" - git push -u origin lang ---