Basic (incomplete) app_name consistency check script

Co-authored-by: ProgramminCat <72707293+ProgramminCat@users.noreply.github.com>
Co-authored-by: Sylvia van Os <sylvia@hackerchick.me>
This commit is contained in:
Rishab Mamgai
2025-11-07 00:32:03 +05:30
committed by GitHub
parent 5ebd23a88a
commit 875e90e940
3 changed files with 105 additions and 2 deletions

View File

@@ -33,8 +33,6 @@ jobs:
flavor: [Foss, Gplay]
steps:
- uses: actions/checkout@v5
- name: Fail on bad translations
run: if grep -ri "&lt;xliff" app/src/main/res/values*/strings.xml; then echo "Invalidly escaped translations found"; exit 1; fi
- uses: gradle/actions/wrapper-validation@v5
- name: set up OpenJDK 21
run: |

34
.github/workflows/i18n-check.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: i18n check
on:
workflow_dispatch:
push:
branches:
- main
- staging
- trying
pull_request:
branches:
- main
permissions:
actions: none
checks: none
contents: read
deployments: none
discussions: none
id-token: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Fail on bad translations
run: if grep -ri "&lt;xliff" app/src/main/res/values*/strings.xml; then echo "Invalidly escaped translations found"; exit 1; fi
- name: Check app_name consistency
run: bash .scripts/check_app_name.sh