|
4 | 4 | schedule:
|
5 | 5 | - cron: "7 0 * * *" # every day at 00:07 UTC
|
6 | 6 | workflow_dispatch:
|
| 7 | + push: |
| 8 | + branches: ["main"] |
7 | 9 |
|
8 | 10 | jobs:
|
9 | 11 | crowdin-pull:
|
10 | 12 | runs-on: ubuntu-latest
|
11 | 13 | if: github.repository == 'go-gitea/gitea'
|
12 | 14 | steps:
|
13 | 15 | - uses: actions/checkout@v4
|
14 |
| - - name: download from crowdin |
15 |
| - uses: docker://jonasfranz/crowdin |
| 16 | + - uses: crowdin/github-action@v1 |
| 17 | + with: |
| 18 | + upload_sources: true |
| 19 | + upload_translations: false |
| 20 | + download_sources: false |
| 21 | + download_translations: true |
| 22 | + push_translations: false |
| 23 | + push_sources: false |
| 24 | + create_pull_request: false |
| 25 | + config: crowdin.yml |
16 | 26 | env:
|
| 27 | + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} |
17 | 28 | CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
|
18 |
| - PLUGIN_DOWNLOAD: true |
19 |
| - PLUGIN_EXPORT_DIR: options/locale/ |
20 |
| - PLUGIN_IGNORE_BRANCH: true |
21 |
| - PLUGIN_PROJECT_IDENTIFIER: gitea |
22 | 29 | - name: update locales
|
23 | 30 | run: ./build/update-locales.sh
|
24 | 31 | - name: push translations to repo
|
|
31 | 38 | commit_message: "[skip ci] Updated translations via Crowdin"
|
32 | 39 | remote: "[email protected]:go-gitea/gitea.git"
|
33 | 40 | ssh_key: ${{ secrets.DEPLOY_KEY }}
|
34 |
| - crowdin-push: |
35 |
| - runs-on: ubuntu-latest |
36 |
| - if: github.repository == 'go-gitea/gitea' |
37 |
| - steps: |
38 |
| - - uses: actions/checkout@v4 |
39 |
| - - name: push translations to crowdin |
40 |
| - uses: docker://jonasfranz/crowdin |
41 |
| - env: |
42 |
| - CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }} |
43 |
| - PLUGIN_UPLOAD: true |
44 |
| - PLUGIN_EXPORT_DIR: options/locale/ |
45 |
| - PLUGIN_IGNORE_BRANCH: true |
46 |
| - PLUGIN_PROJECT_IDENTIFIER: gitea |
47 |
| - PLUGIN_FILES: | |
48 |
| - locale_en-US.ini: options/locale/locale_en-US.ini |
49 |
| - PLUGIN_BRANCH: main |
0 commit comments