Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web] Tell the Crowdin push action not to create a PR

Manav Rathia567009e2ab3
diff --git a/.github/workflows/web-crowdin-push.yml b/.github/workflows/web-crowdin-push.yml
new file mode 100644
index 0000000000..1d525dfe0e
--- /dev/null
+++ b/.github/workflows/web-crowdin-push.yml
@@ -0,0 +1,34 @@
+name: "Push Crowdin translations (web)"
+
+# This is a variant of web-crowdin.yml that uploads the translated strings in
+# addition to the source strings.
+#
+# This allows us to change the strings in our source code for an automated
+# refactoring (e.g. renaming a key), and then run this workflow to update the
+# data in Crowdin taking our source code as the source of truth.
+
+on:
+ # Trigger manually, or using
+ # `gh workflow run web-crowdin-push.yml --ref <my-branch>`
+ workflow_dispatch:
+
+jobs:
+ push-to-crowdin:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Crowdin push
+ uses: crowdin/github-action@v1
+ with:
+ base_path: "web/"
+ config: "web/crowdin.yml"
+ upload_sources: true
+ upload_translations: true
+ download_translations: false
+ project_id: 569613
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
diff --git a/.github/workflows/web-crowdin-update.yml b/.github/workflows/web-crowdin-update.yml
deleted file mode 100644
index 63a643cfcf..0000000000
--- a/.github/workflows/web-crowdin-update.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-name: "Update Crowdin translations (web)"
-
-# This is a variant of web-crowdin.yml that also uploads the translated strings
-# (in addition to the source strings). This allows us to change the strings in
-# our source code for an automated refactoring (e.g. renaming a key), and then
-# run this workflow to update the data in Crowdin taking our source code as the
-# source of truth.
-
-on:
- # Only allow running manually.
- workflow_dispatch:
-
-jobs:
- synchronize-with-crowdin:
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
-
- - name: Crowdin's action
- uses: crowdin/github-action@v1
- with:
- base_path: "web/"
- config: "web/crowdin.yml"
- upload_sources: true
- # This is what differs from web-crowdin.yml
- upload_translations: true
- download_translations: true
- localization_branch_name: translations/web
- create_pull_request: true
- skip_untranslated_strings: true
- pull_request_title: "[web] Updated translations"
- pull_request_body: "Updated translations from [Crowdin](https://crowdin.com/project/ente-photos-web)"
- pull_request_base_branch_name: "main"
- project_id: 569613
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}