chore: update drone.yml
This commit is contained in:
parent
6b070ba48f
commit
32a5a9434e
20
.drone.yml
20
.drone.yml
@ -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
|
||||||
---
|
---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user