From c5535b9a1c9dc5b67649b41e2f7a3c3dc3bf5a6a Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Wed, 13 Aug 2025 21:47:47 -0500 Subject: [PATCH] chore(ci): remove Crowdin integration from scheduled updates (#2708) Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> --- .../workflows/crowdin-upload-translations.yml | 26 ----------- .github/workflows/scheduled-updates.yml | 46 ++----------------- config/crowdin/crowdin.yml | 38 --------------- 3 files changed, 3 insertions(+), 107 deletions(-) delete mode 100644 .github/workflows/crowdin-upload-translations.yml delete mode 100644 config/crowdin/crowdin.yml diff --git a/.github/workflows/crowdin-upload-translations.yml b/.github/workflows/crowdin-upload-translations.yml deleted file mode 100644 index 869695b2c..000000000 --- a/.github/workflows/crowdin-upload-translations.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Crowdin Upload Translations Action - -on: - workflow_dispatch: # Allow manual triggering - -jobs: - synchronize-with-crowdin: - runs-on: ubuntu-latest - if: github.repository == 'meshtastic/Meshtastic-Android' - - steps: - - name: Checkout - uses: actions/checkout@v5 - - - name: Upload translations with Crowdin - uses: crowdin/github-action@v2 - with: - base_url: 'https://meshtastic.crowdin.com/api/v2' - config: 'config/crowdin/crowdin.yml' - upload_sources: fals - upload_translations: true - download_translations: false - crowdin_branch_name: 'main' - env: - CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} - CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} diff --git a/.github/workflows/scheduled-updates.yml b/.github/workflows/scheduled-updates.yml index e43c3ab6d..99181cb0d 100644 --- a/.github/workflows/scheduled-updates.yml +++ b/.github/workflows/scheduled-updates.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: # Allow manual triggering jobs: - update_and_translate: + update_assets: runs-on: ubuntu-latest if: github.repository == 'meshtastic/Meshtastic-Android' permissions: @@ -55,61 +55,22 @@ jobs: fi fi - - name: Upload sources to Crowdin - uses: crowdin/github-action@v2 - with: - base_url: 'https://meshtastic.crowdin.com/api/v2' - config: 'config/crowdin/crowdin.yml' - crowdin_branch_name: 'main' - upload_sources: true - upload_translations: false - download_translations: false - create_pull_request: false - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} - CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} - - - name: Download translations from Crowdin - uses: crowdin/github-action@v2 - with: - base_url: 'https://meshtastic.crowdin.com/api/v2' - config: 'config/crowdin/crowdin.yml' - crowdin_branch_name: 'main' - upload_sources: false - download_translations: true - create_pull_request: false - commit_message: 'chore(l10n): New Crowdin Translations from scheduled update' - push_translations: false - push_sources: false - localization_branch_name: ${{ github.ref_name }} - export_only_approved: false - # skip_ref_checkout: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} - CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} - - name: Create Pull Request if changes occurred uses: peter-evans/create-pull-request@v7 with: token: ${{ secrets.AUTOMATION_PAT }} commit-message: | - chore: Scheduled updates (Firmware, Hardware, Translations) + chore: Scheduled updates (Firmware, Hardware) Automated updates for: - Firmware releases list - Device hardware list - - Crowdin source string uploads - - Crowdin translation downloads - title: 'chore: Scheduled updates (Firmware, Hardware, Translations)' + title: 'chore: Scheduled updates (Firmware, Hardware)' body: | This PR includes automated updates from the scheduled workflow: - Updated `firmware_releases.json` from the Meshtastic API (if changed). - Updated `device_hardware.json` from the Meshtastic API (if changed). - - Source strings were uploaded to Crowdin (if any local changes were pushed). - - Latest translations were downloaded from Crowdin (if available). Please review the changes. branch: 'scheduled-updates' @@ -117,6 +78,5 @@ jobs: delete-branch: true labels: | automation - l10n firmware hardware \ No newline at end of file diff --git a/config/crowdin/crowdin.yml b/config/crowdin/crowdin.yml deleted file mode 100644 index f9d8fde13..000000000 --- a/config/crowdin/crowdin.yml +++ /dev/null @@ -1,38 +0,0 @@ -# -# Basic Crowdin CLI configuration -# See https://crowdin.github.io/crowdin-cli/configuration for more information -# See https://support.crowdin.com/developer/configuration-file/ for all available options -# - -# -# Crowdin credentials -# -"project_id_env": "CROWDIN_PROJECT_ID" -"api_token_env": "CROWDIN_PERSONAL_TOKEN" -"base_path": "../../" -"base_url": "https://meshtastic.crowdin.com/api/v2" - -# -# Defines whether to preserve the original directory structure in the Crowdin project -# Recommended to set to true -# -"preserve_hierarchy": false - -# -# Files configuration. -# See https://support.crowdin.com/developer/configuration-file/ for all available options -# -"files": [ - { - "source": "/**/values/strings.xml", - "translation": "/**/values-%two_letters_code%/%original_file_name%", - "translation_replace": { - "sr-Latn": "b+sr+Latn", - }, - "cleanup_mode": true, - "update_option": "update_as_unapproved", - "escape_quotes": 2, - "escape_special_characters": 1, - "type": "android", - } -]