chore(i18n): clean code

This commit is contained in:
lawvs
2022-09-09 15:27:03 +08:00
parent ff1cb4da84
commit d6e408a4be
5 changed files with 13 additions and 9 deletions
+9 -2
View File
@@ -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 }}