File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sync Crowdin
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : 0 * 1 * *
7+ push :
8+ paths :
9+ - /src/main/resources/addresources/values/strings.xml
10+
11+ jobs :
12+ sync :
13+ name : Sync translations
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+
21+ - name : Sync translations
22+ uses : crowdin/github-action@v1
23+ with :
24+ config : crowdin.yml
25+ upload_sources : true
26+ upload_translations : false
27+ download_translations : true
28+ localization_branch_name : feat/translations
29+ create_pull_request : true
30+ pull_request_title : " chore: Sync translations"
31+ pull_request_body : " Sync translations from [crowdin.com/project/revanced](https://crowdin.com/project/revanced)"
32+ pull_request_base_branch_name : " dev"
33+ commit_message : " chore: Sync translations"
34+ github_user_name : revanced-bot
35+ github_user_email :
[email protected] 36+ env :
37+ GITHUB_TOKEN : ${{ secrets.REPOSITORY_PUSH_ACCESS }}
38+ CROWDIN_PROJECT_ID : ${{ secrets.CROWDIN_PROJECT_ID }}
39+ CROWDIN_PERSONAL_TOKEN : ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
Original file line number Diff line number Diff line change 1+ project_id_env : " CROWDIN_PROJECT_ID"
2+ api_token_env : " CROWDIN_PERSONAL_TOKEN"
3+
4+ preserve_hierarchy : false
5+ files :
6+ - source : src/main/resources/addresources/values/strings.xml
7+ translation : src/main/resources/addresources/values-%android_code%/strings.xml
8+ skip_untranslated_strings : true
You can’t perform that action at this time.
0 commit comments