switch to crowdin github action

This commit is contained in:
Amruth Pillai
2026-04-14 11:50:07 +02:00
parent c19b9746c8
commit d6e0d9ac61
3 changed files with 48 additions and 7 deletions
+13 -6
View File
@@ -16,16 +16,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Checkout Repository
uses: actions/checkout@v6
- uses: voidzero-dev/setup-vp@v1
- name: Setup Vite+
uses: voidzero-dev/setup-vp@v1
with:
node-version: "24"
cache: true
- run: vp install
- name: Install Dependencies
run: vp install
- run: vp test
- run: vp check --fix
- name: Run Tests
run: vp test
- uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8
- name: Run Lint and Format
run: vp check --fix
- name: Autofix
uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8
+34
View File
@@ -0,0 +1,34 @@
name: Sync Translations from Crowdin
on:
push:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
crowdin-sync:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Sync Translations from Crowdin
uses: crowdin/github-action@v2
with:
download_translations: true
localization_branch_name: l10n
pull_request_labels: "l10n"
pull_request_title: "chore(i18n): sync translations from Crowdin"
pull_request_body: "This is an automated pull request to sync translations from [Crowdin](https://crowdin.com/project/reactive-resume)."
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
+1 -1
View File
@@ -1,6 +1,6 @@
preserve_hierarchy: true
api_token_env: CROWDIN_API_TOKEN
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN
commit_message: "[ci skip]"
pull_request_title: Sync Translations from Crowdin
pull_request_labels: