@@ -11,14 +11,19 @@ jobs:
1111 if : github.repository == 'go-gitea/gitea'
1212 steps :
1313 - uses : actions/checkout@v4
14- - name : download from crowdin
15- uses : docker://jonasfranz/crowdin
14+ - uses : crowdin/github-action@v1
15+ with :
16+ upload_sources : true
17+ upload_translations : false
18+ download_sources : false
19+ download_translations : true
20+ push_translations : false
21+ push_sources : false
22+ create_pull_request : false
23+ config : crowdin.yml
1624 env :
25+ CROWDIN_PROJECT_ID : ${{ secrets.CROWDIN_PROJECT_ID }}
1726 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
2227 - name : update locales
2328 run : ./build/update-locales.sh
2429 - name : push translations to repo
3136 commit_message : " [skip ci] Updated translations via Crowdin"
3237 remote :
" [email protected] :go-gitea/gitea.git" 3338 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