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: metadata:
namespace: git namespace: git
steps: steps:
- name: Update Translations - name: Push/Pull 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
image: node:current-bullseye image: node:current-bullseye
environment: environment:
TOKEN: TOKEN:
from_secret: drone_gitea from_secret: drone_gitea
CTOKEN:
from_secret: crowdin_token
commands: commands:
- yarn install - git checkout -B lang
- yarn workspace @snort/app format
- git config --global user.email drone@v0l.io - git config --global user.email drone@v0l.io
- git config --global user.name "Drone CI" - git config --global user.name "Drone CI"
- git remote set-url origin https://drone:$TOKEN@git.v0l.io/Kieran/snort.git - 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 diff
- git checkout -B lang
- git commit -a -m "Update translations" - git commit -a -m "Update translations"
- git push -u origin lang - git push -u origin lang
--- ---