-
Notifications
You must be signed in to change notification settings - Fork 38
53 lines (43 loc) · 1.25 KB
/
translations.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: ASF-ui-translations
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
update:
environment: dev-crowdin
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
with:
show-progress: false
token: ${{ secrets.ARCHIBOT_ASF_UI_GITHUB_TOKEN }}
- name: Download latest translations from Crowdin
uses: crowdin/[email protected]
with:
upload_sources: false
download_translations: true
skip_untranslated_strings: true
push_translations: false
crowdin_branch_name: main
config: '.github/crowdin.yml'
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}
- name: Import GPG key
uses: crazy-max/[email protected]
with:
gpg_private_key: ${{ secrets.ARCHIBOT_ASF_UI_GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Commit and push the changes
shell: sh
run: |
set -eu
git add -A "src/i18n/locale"
if ! git diff --cached --quiet; then
git commit -m "Automatic translations update"
git push
fi