kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
chore(ci): remove Crowdin integration from scheduled updates (#2708)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>pull/2713/head
rodzic
10c1befa2b
commit
c5535b9a1c
|
@ -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 }}
|
|
@ -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
|
|
@ -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",
|
||||
}
|
||||
]
|
Ładowanie…
Reference in New Issue