chore: update drone.yml
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Kieran 2023-05-15 10:54:06 +01:00
parent 6b070ba48f
commit 32a5a9434e
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -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
---