π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Rename and consolidate Crowdin workflows
Manav Rathi62fb43e43a3b
diff --git a/.github/workflows/auth-crowdin-sync.yml b/.github/workflows/auth-crowdin-sync.ymldeleted file mode 100644index 1922540faa..0000000000--- a/.github/workflows/auth-crowdin-sync.yml+++ /dev/null@@ -1,40 +0,0 @@-name: "Sync Crowdin translations (auth)"--on:- schedule:- # Run Mondays at ~6:30 AM IST- # See: [Note: Run workflow on specific days of the week]- - cron: "50 0 * * 1"- # Also allow manually running the workflow.- workflow_dispatch:--permissions:- contents: write- pull-requests: write--jobs:- synchronize-with-crowdin:- runs-on: ubuntu-latest-- steps:- - name: Checkout- uses: actions/checkout@v6-- - name: Crowdin's action- uses: crowdin/github-action@v2- with:- base_path: "mobile/apps/auth/"- config: "mobile/apps/auth/crowdin.yml"- upload_sources: true- upload_translations: false- download_translations: true- localization_branch_name: translations/auth- create_pull_request: true- skip_untranslated_strings: true- pull_request_title: "[auth] New translations"- pull_request_body: "New translations from [Crowdin](https://crowdin.com/project/ente-authenticator-app)"- pull_request_base_branch_name: "main"- project_id: 575169- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}diff --git a/.github/workflows/locker-crowdin-sync.yml b/.github/workflows/locker-crowdin-sync.ymldeleted file mode 100644index 85269b4d4d..0000000000--- a/.github/workflows/locker-crowdin-sync.yml+++ /dev/null@@ -1,40 +0,0 @@-name: "Sync Crowdin translations (locker)"--on:- schedule:- # Run Mondays at ~7:00 AM IST- # See: [Note: Run workflow on specific days of the week]- - cron: "30 1 * * 1"- # Also allow manually running the workflow.- workflow_dispatch:--permissions:- contents: write- pull-requests: write--jobs:- synchronize-with-crowdin:- runs-on: ubuntu-latest-- steps:- - name: Checkout- uses: actions/checkout@v6-- - name: Crowdin's action- uses: crowdin/github-action@v2- with:- base_path: "mobile/apps/locker/"- config: "mobile/apps/locker/crowdin.yml"- upload_sources: true- upload_translations: false- download_translations: true- localization_branch_name: translations/locker- create_pull_request: true- skip_untranslated_strings: true- pull_request_title: "[locker] New translations"- pull_request_body: "New translations from [Crowdin](https://crowdin.com/project/ente-locker)"- pull_request_base_branch_name: "main"- project_id: 860056- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}diff --git a/.github/workflows/auth-crowdin-push.yml b/.github/workflows/mobile-auth-crowdin-push-sources.ymlsimilarity index 83%rename from .github/workflows/auth-crowdin-push.ymlrename to .github/workflows/mobile-auth-crowdin-push-sources.ymlindex d69adb66ba..4f8b5044d8 100644--- a/.github/workflows/auth-crowdin-push.yml+++ b/.github/workflows/mobile-auth-crowdin-push-sources.yml@@ -1,13 +1,13 @@-name: "Push sources to Crowdin (auth)"+name: "Push sources to Crowdin (mobile/auth)"on:push:branches: [main]paths:- # Run workflow when auth's intl_en.arb is changed+ # Run workflow when auth's app_en.arb is changed- "mobile/apps/auth/lib/l10n/arb/app_en.arb"# Or the workflow itself is changed- - ".github/workflows/auth-crowdin.yml"+ - ".github/workflows/mobile-auth-crowdin-push-sources.yml"permissions:contents: writediff --git a/.github/workflows/mobile-crowdin-push-both.yml b/.github/workflows/mobile-crowdin-push-sources-and-translations.ymlsimilarity index 90%rename from .github/workflows/mobile-crowdin-push-both.ymlrename to .github/workflows/mobile-crowdin-push-sources-and-translations.ymlindex b811a68250..d7b80359c0 100644--- a/.github/workflows/mobile-crowdin-push-both.yml+++ b/.github/workflows/mobile-crowdin-push-sources-and-translations.yml@@ -1,4 +1,4 @@-name: "Push Crowdin translations (mobile)"+name: "Push sources and translations to Crowdin (mobile)"# This is a variant of the mobile Crowdin sync workflows that uploads the# translated strings in addition to the source strings.@@ -22,13 +22,13 @@ name: "Push Crowdin translations (mobile)"# 3. Branch from updated `main` and make the string edits.## 4. Push the branch and run this workflow-# `gh workflow run mobile-crowdin-push-both.yml --ref <branch> -f app=photos`+# `gh workflow run mobile-crowdin-push-sources-and-translations.yml --ref <branch> -f app=photos`## 5. After it succeeds, merge the string-edit PR.on:# Trigger manually, or using- # `gh workflow run mobile-crowdin-push-both.yml --ref <my-branch> -f app=photos`+ # `gh workflow run mobile-crowdin-push-sources-and-translations.yml --ref <my-branch> -f app=photos`workflow_dispatch:inputs:app:@@ -47,11 +47,10 @@ permissions:pull-requests: writejobs:- push-both-to-crowdin:+ push-sources-and-translations-to-crowdin:name: "Push ${{ matrix.app }} sources and translations"runs-on: ubuntu-lateststrategy:- fail-fast: falsematrix:include:- app: photosdiff --git a/.github/workflows/mobile-crowdin-sync.yml b/.github/workflows/mobile-crowdin-sync.ymlindex 459e6e2500..6ba04ea038 100644--- a/.github/workflows/mobile-crowdin-sync.yml+++ b/.github/workflows/mobile-crowdin-sync.yml@@ -1,12 +1,23 @@-name: "Sync Crowdin translations (mobile/photos)"+name: "Sync Crowdin (mobile)"on:schedule:- # Run Mondays at ~6:30 AM IST+ # Run Mondays at ~6:20 AM IST# See: [Note: Run workflow on specific days of the week]- - cron: "40 0 * * 1"+ - cron: "50 0 * * 1"# Also allow manually running the workflow.workflow_dispatch:+ inputs:+ app:+ description: "Mobile app to sync"+ required: true+ default: "all"+ type: choice+ options:+ - all+ - photos+ - auth+ - lockerpermissions:contents: write@@ -14,26 +25,54 @@ permissions:jobs:synchronize-with-crowdin:+ name: "Sync ${{ matrix.app }} with Crowdin"runs-on: ubuntu-latest+ strategy:+ matrix:+ include:+ - app: photos+ base_path: "mobile/apps/photos/"+ config: "mobile/apps/photos/crowdin.yml"+ project_id: 574741+ localization_branch_name: translations/mobile+ pull_request_title: "[mobile/photos] New translations"+ pull_request_body: "New translations from [Crowdin](https://crowdin.com/project/ente-photos-app)"+ - app: auth+ base_path: "mobile/apps/auth/"+ config: "mobile/apps/auth/crowdin.yml"+ project_id: 575169+ localization_branch_name: translations/auth+ pull_request_title: "[auth] New translations"+ pull_request_body: "New translations from [Crowdin](https://crowdin.com/project/ente-authenticator-app)"+ - app: locker+ base_path: "mobile/apps/locker/"+ config: "mobile/apps/locker/crowdin.yml"+ project_id: 860056+ localization_branch_name: translations/locker+ pull_request_title: "[locker] New translations"+ pull_request_body: "New translations from [Crowdin](https://crowdin.com/project/ente-locker)"steps:- name: Checkout+ if: ${{ github.event_name != 'workflow_dispatch' || inputs.app == 'all' || inputs.app == matrix.app }}uses: actions/checkout@v6- name: Crowdin's action+ if: ${{ github.event_name != 'workflow_dispatch' || inputs.app == 'all' || inputs.app == matrix.app }}uses: crowdin/github-action@v2with:- base_path: "mobile/apps/photos/"- config: "mobile/apps/photos/crowdin.yml"+ base_path: ${{ matrix.base_path }}+ config: ${{ matrix.config }}upload_sources: trueupload_translations: falsedownload_translations: true- localization_branch_name: translations/mobile+ localization_branch_name: ${{ matrix.localization_branch_name }}create_pull_request: true- pull_request_title: "[mobile/photos] New translations"- pull_request_body: "New translations from [Crowdin](https://crowdin.com/project/ente-photos-app)"+ skip_untranslated_strings: true+ pull_request_title: ${{ matrix.pull_request_title }}+ pull_request_body: ${{ matrix.pull_request_body }}pull_request_base_branch_name: "main"- project_id: 574741+ project_id: ${{ matrix.project_id }}env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}diff --git a/.github/workflows/locker-crowdin-push.yml b/.github/workflows/mobile-locker-crowdin-push-sources.ymlsimilarity index 89%rename from .github/workflows/locker-crowdin-push.ymlrename to .github/workflows/mobile-locker-crowdin-push-sources.ymlindex 4217c6d76d..422472ba5c 100644--- a/.github/workflows/locker-crowdin-push.yml+++ b/.github/workflows/mobile-locker-crowdin-push-sources.yml@@ -1,4 +1,4 @@-name: "Push sources to Crowdin (locker)"+name: "Push sources to Crowdin (mobile/locker)"on:push:@@ -7,7 +7,7 @@ on:# Run workflow when locker's app_en.arb is changed- "mobile/apps/locker/lib/l10n/app_en.arb"# Or the workflow itself is changed- - ".github/workflows/locker-crowdin-push.yml"+ - ".github/workflows/mobile-locker-crowdin-push-sources.yml"# Allow manual runs from any branch (useful to push translations from a feature branch)workflow_dispatch:diff --git a/.github/workflows/mobile-crowdin-push.yml b/.github/workflows/mobile-photos-crowdin-push-sources.ymlsimilarity index 83%rename from .github/workflows/mobile-crowdin-push.ymlrename to .github/workflows/mobile-photos-crowdin-push-sources.ymlindex 472924869c..47bb30d8b4 100644--- a/.github/workflows/mobile-crowdin-push.yml+++ b/.github/workflows/mobile-photos-crowdin-push-sources.yml@@ -1,13 +1,13 @@-name: "Push sources to Crowdin (mobile)"+name: "Push sources to Crowdin (mobile/photos)"on:push:branches: [main]paths:- # Run workflow when mobiles's intl_en.arb is changed+ # Run workflow when photos's intl_en.arb is changed- "mobile/apps/photos/lib/l10n/intl_en.arb"# Or the workflow itself is changed- - ".github/workflows/mobile-crowdin.yml"+ - ".github/workflows/mobile-photos-crowdin-push-sources.yml"permissions:contents: writediff --git a/.github/workflows/web-crowdin-push-both.yml b/.github/workflows/web-crowdin-push-sources-and-translations.ymlsimilarity index 85%rename from .github/workflows/web-crowdin-push-both.ymlrename to .github/workflows/web-crowdin-push-sources-and-translations.ymlindex 9ea8f218e8..32c1e855f8 100644--- a/.github/workflows/web-crowdin-push-both.yml+++ b/.github/workflows/web-crowdin-push-sources-and-translations.yml@@ -1,4 +1,4 @@-name: "Push Crowdin translations (web)"+name: "Push sources and translations to Crowdin (web)"# This is a variant of web-crowdin-sync.yml that uploads the translated strings in# addition to the source strings.@@ -22,13 +22,13 @@ name: "Push Crowdin translations (web)"# 3. Branch from updated `main` and make the string edits.## 4. Push the branch and run this workflow-# `gh workflow run web-crowdin-push-both.yml --ref <branch>`+# `gh workflow run web-crowdin-push-sources-and-translations.yml --ref <branch>`## 5. After it succeeds, merge the string-edit PR.on:# Trigger manually, or using- # `gh workflow run web-crowdin-push-both.yml --ref <my-branch>`+ # `gh workflow run web-crowdin-push-sources-and-translations.yml --ref <my-branch>`workflow_dispatch:permissions:@@ -36,7 +36,7 @@ permissions:pull-requests: writejobs:- push-both-to-crowdin:+ push-sources-and-translations-to-crowdin:runs-on: ubuntu-lateststeps:diff --git a/.github/workflows/web-crowdin-sync.yml b/.github/workflows/web-crowdin-sync.ymlindex bcc29370cb..6909f5b05f 100644--- a/.github/workflows/web-crowdin-sync.yml+++ b/.github/workflows/web-crowdin-sync.yml@@ -1,4 +1,4 @@-name: "Sync Crowdin translations (web)"+name: "Sync Crowdin (web)"on:push:@@ -7,7 +7,7 @@ on:# Run workflow when web's en-US/translation.json is changed- "web/packages/base/locales/en-US/translation.json"# Or the workflow itself is changed- - ".github/workflows/web-crowdin.yml"+ - ".github/workflows/web-crowdin-sync.yml"schedule:# Run Mondays at ~6:00 AM IST#