Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Tighten Crowdin workflow behavior

Manav Rathi13588cae1f86
diff --git a/.github/workflows/mobile-auth-crowdin-push-sources.yml b/.github/workflows/mobile-auth-crowdin-push-sources.yml
index 4f8b5044d8..8bdfdb66cf 100644
--- a/.github/workflows/mobile-auth-crowdin-push-sources.yml
+++ b/.github/workflows/mobile-auth-crowdin-push-sources.yml
@@ -6,12 +6,13 @@ on:
paths:
# Run workflow when auth's app_en.arb is changed
- "mobile/apps/auth/lib/l10n/arb/app_en.arb"
+ # Or the Crowdin config is changed
+ - "mobile/apps/auth/crowdin.yml"
# Or the workflow itself is changed
- ".github/workflows/mobile-auth-crowdin-push-sources.yml"
permissions:
- contents: write
- pull-requests: write
+ contents: read
jobs:
push-sources-to-crowdin:
diff --git a/.github/workflows/mobile-crowdin-push-sources-and-translations.yml b/.github/workflows/mobile-crowdin-push-sources-and-translations.yml
index d7b80359c0..7e1154fcd2 100644
--- a/.github/workflows/mobile-crowdin-push-sources-and-translations.yml
+++ b/.github/workflows/mobile-crowdin-push-sources-and-translations.yml
@@ -43,8 +43,7 @@ on:
- locker
permissions:
- contents: write
- pull-requests: write
+ contents: read
jobs:
push-sources-and-translations-to-crowdin:
diff --git a/.github/workflows/mobile-crowdin-sync.yml b/.github/workflows/mobile-crowdin-sync.yml
index 6ba04ea038..fd4cb55a38 100644
--- a/.github/workflows/mobile-crowdin-sync.yml
+++ b/.github/workflows/mobile-crowdin-sync.yml
@@ -42,14 +42,14 @@ jobs:
config: "mobile/apps/auth/crowdin.yml"
project_id: 575169
localization_branch_name: translations/auth
- pull_request_title: "[auth] New translations"
+ pull_request_title: "[mobile/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_title: "[mobile/locker] New translations"
pull_request_body: "New translations from [Crowdin](https://crowdin.com/project/ente-locker)"
steps:
diff --git a/.github/workflows/mobile-locker-crowdin-push-sources.yml b/.github/workflows/mobile-locker-crowdin-push-sources.yml
index 422472ba5c..35e2fdb384 100644
--- a/.github/workflows/mobile-locker-crowdin-push-sources.yml
+++ b/.github/workflows/mobile-locker-crowdin-push-sources.yml
@@ -6,14 +6,13 @@ on:
paths:
# Run workflow when locker's app_en.arb is changed
- "mobile/apps/locker/lib/l10n/app_en.arb"
+ # Or the Crowdin config is changed
+ - "mobile/apps/locker/crowdin.yml"
# Or the workflow itself is changed
- ".github/workflows/mobile-locker-crowdin-push-sources.yml"
- # Allow manual runs from any branch (useful to push translations from a feature branch)
- workflow_dispatch:
permissions:
- contents: write
- pull-requests: write
+ contents: read
jobs:
push-sources-to-crowdin:
diff --git a/.github/workflows/mobile-photos-crowdin-push-sources.yml b/.github/workflows/mobile-photos-crowdin-push-sources.yml
index 47bb30d8b4..3968ae2ccf 100644
--- a/.github/workflows/mobile-photos-crowdin-push-sources.yml
+++ b/.github/workflows/mobile-photos-crowdin-push-sources.yml
@@ -6,12 +6,13 @@ on:
paths:
# Run workflow when photos's intl_en.arb is changed
- "mobile/apps/photos/lib/l10n/intl_en.arb"
+ # Or the Crowdin config is changed
+ - "mobile/apps/photos/crowdin.yml"
# Or the workflow itself is changed
- ".github/workflows/mobile-photos-crowdin-push-sources.yml"
permissions:
- contents: write
- pull-requests: write
+ contents: read
jobs:
push-sources-to-crowdin:
diff --git a/.github/workflows/web-crowdin-push-sources-and-translations.yml b/.github/workflows/web-crowdin-push-sources-and-translations.yml
index 32c1e855f8..85d16554d3 100644
--- a/.github/workflows/web-crowdin-push-sources-and-translations.yml
+++ b/.github/workflows/web-crowdin-push-sources-and-translations.yml
@@ -32,8 +32,7 @@ on:
workflow_dispatch:
permissions:
- contents: write
- pull-requests: write
+ contents: read
jobs:
push-sources-and-translations-to-crowdin:
diff --git a/.github/workflows/web-crowdin-sync.yml b/.github/workflows/web-crowdin-sync.yml
index 6909f5b05f..4e50f344a3 100644
--- a/.github/workflows/web-crowdin-sync.yml
+++ b/.github/workflows/web-crowdin-sync.yml
@@ -6,6 +6,8 @@ on:
paths:
# Run workflow when web's en-US/translation.json is changed
- "web/packages/base/locales/en-US/translation.json"
+ # Or the Crowdin config is changed
+ - "web/crowdin.yml"
# Or the workflow itself is changed
- ".github/workflows/web-crowdin-sync.yml"
schedule: