fix: Process strings from Crowdin to strip the app/patch prefixes again

This commit is contained in:
oSumAtrIX 2026-02-01 21:59:18 +01:00
parent 2c0e81ee17
commit e566efc51f
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
3 changed files with 177 additions and 99 deletions

View file

@ -1,8 +1,6 @@
name: Pull strings
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
@ -17,7 +15,7 @@ jobs:
uses: actions/checkout@v5
with:
ref: dev
clean: true
persist-credentials: true
- name: Pull strings
uses: crowdin/github-action@v2
@ -25,16 +23,28 @@ jobs:
config: crowdin.yml
upload_sources: false
download_translations: true
push_translations: false
skip_ref_checkout: true
localization_branch_name: feat/translations
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: Process strings
run: |
gradlew processStringsFromCrowdin
env:
ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ github.actor }}
ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "chore: Sync translations from Crowdin"
push_options: '--force'
branch: feat/translations
- name: Open pull request
if: github.event_name == 'workflow_dispatch'
uses: repo-sync/pull-request@v2
with:
source_branch: feat/translations