mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-23 16:22:21 +03:00
38 lines
1013 B
YAML
38 lines
1013 B
YAML
name: Languages Sync
|
|
|
|
on:
|
|
push:
|
|
branches: ['master']
|
|
paths:
|
|
- 'packages/i18n/**'
|
|
- '.github/workflows/languages-sync.yml'
|
|
- '!.github/actions/setup-node/action.yml'
|
|
pull_request_target:
|
|
branches: ['master']
|
|
paths:
|
|
- 'packages/i18n/**'
|
|
- '.github/workflows/languages-sync.yml'
|
|
- '!.github/actions/setup-node/action.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Node.js
|
|
uses: ./.github/actions/setup-node
|
|
- name: Check Language Key
|
|
if: github.ref != 'refs/heads/master'
|
|
working-directory: ./packages/i18n
|
|
run: yarn run sync-languages:check
|
|
env:
|
|
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
|
|
|
|
- name: Sync Languages
|
|
if: github.ref == 'refs/heads/master'
|
|
working-directory: ./packages/i18n
|
|
run: yarn run sync-languages
|
|
env:
|
|
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
|