diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index bfa16c4ca..efc9ef5c2 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -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 diff --git a/.github/workflows/crowdin-sync.yml b/.github/workflows/crowdin-sync.yml new file mode 100644 index 000000000..53f76a427 --- /dev/null +++ b/.github/workflows/crowdin-sync.yml @@ -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 }} diff --git a/crowdin.yml b/crowdin.yml index ee8a083a7..d3fa21146 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -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: