mirror of
https://github.com/documenso/documenso.git
synced 2026-07-23 08:23:42 +10:00
960217c78d
- Switch package manager to pnpm 10 via corepack - Add pnpm-workspace.yaml with 54+ shared dependency catalogs - Convert all workspace packages to catalog: and workspace:* protocols - Upgrade Turborepo from 1.x to 2.8.12 (pipeline -> tasks) - Upgrade apps/openpage-api from Next 15 to Next 16 - Update Docker, CI workflows, and GitHub Actions for pnpm - Convert patch file to pnpm native format - Replace deprecated next lint with standalone eslint - Update all documentation references from npm to pnpm - Fix stale dependabot config and documentation paths
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
# Pull down translations from Crowdin every two hours or when triggered manually.
|
|
|
|
name: 'Pull translations'
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 */2 * * *' # Every two hours.
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
pull_translations:
|
|
name: Pull translations
|
|
runs-on: ubuntu-latest
|
|
environment: Translations
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: ./.github/actions/node-install
|
|
|
|
- name: Compile translations
|
|
id: compile_translations
|
|
run: pnpm run translate:compile -- -- --strict
|
|
continue-on-error: true
|
|
|
|
- name: Pull translations from Crowdin
|
|
if: steps.compile_translations.outcome == 'failure'
|
|
uses: crowdin/github-action@v2
|
|
with:
|
|
upload_sources: false
|
|
upload_translations: false
|
|
download_translations: true
|
|
export_only_approved: false
|
|
localization_branch_name: chore/translations
|
|
commit_message: 'chore: add translations'
|
|
pull_request_title: 'chore: add translations'
|
|
|
|
env:
|
|
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository).
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
|
|
|
# A numeric ID, found at https://crowdin.com/project/<projectName>/tools/api
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
|
|
# Visit https://crowdin.com/settings#api-key to create this token
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|