mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 23:26:30 +08:00
chore(i18n): clean code
This commit is contained in:
@@ -11,6 +11,7 @@ on:
|
||||
paths:
|
||||
- 'libs/datasource/i18n/**'
|
||||
- '.github/workflows/languages-sync.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
# Cancels all previous workflow runs for pull requests that have not completed.
|
||||
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
|
||||
@@ -49,8 +50,14 @@ jobs:
|
||||
|
||||
- name: Check Language Key
|
||||
if: github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/master'
|
||||
run: pnpm run --recursive sync-languages:check
|
||||
working-directory: ./libs/datasource/i18n
|
||||
run: pnpm run sync-languages:check
|
||||
env:
|
||||
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
|
||||
|
||||
- name: Sync Languages
|
||||
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'
|
||||
run: pnpm run --recursive sync-languages
|
||||
working-directory: ./libs/datasource/i18n
|
||||
run: pnpm run sync-languages
|
||||
env:
|
||||
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user