Add syncing translations to crowdin
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2021-07-13 12:06:50 +02:00
parent f0e093b3d6
commit 9e42559d70
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 36 additions and 16 deletions

View File

@ -530,7 +530,7 @@ steps:
- failure
---
kind: pipeline
name: ping-weblate
name: update-translations
depends_on:
- build
@ -542,20 +542,40 @@ trigger:
- push
steps:
- name: update-translation-base
image: appleboy/drone-git-push
failure: ignore
# - name: download
# pull: always
# image: jonasfranz/crowdin
# settings:
# download: true
# export_dir: src/i18n/lang/
# ignore_branch: true
# project_identifier: vikunja
# environment:
# CROWDIN_KEY:
# from_secret: crowdin_key
#
# - name: push
# pull: always
# image: appleboy/drone-git-push
# settings:
# author_email: "frederik@vikunja.io"
# author_name: Frederick [Bot]
# branch: main
# commit: true
# commit_message: "[skip ci] Updated translations via Crowdin"
# remote: "git@kolaente.dev:9022/vikunja/frontend.git"
# environment:
# GIT_PUSH_SSH_KEY:
# from_secret: git_push_ssh_key
- name: upload
pull: always
image: jonasfranz/crowdin
settings:
branch: translations
remote: ssh://git@kolaente.dev:9022/vikunja/frontend.git
ssh_key:
from_secret: translations_branch_update_ssh_key
- name: notify-weblate
image: curlimages/curl
depends_on:
- update-translation-base
files:
en.json: src/i18n/lang/en.json
ignore_branch: true
project_identifier: vikunja
environment:
WEBLATE_TOKEN:
from_secret: weblate_token
commands:
- ./ping-weblate.sh
CROWDIN_KEY:
from_secret: crowdin_key