mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 00:41:39 +08:00
chore: update workflow
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
name: Languages Sync
|
name: Languages Sync
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# push:
|
push:
|
||||||
# branches: [ "feat/sync-languages" ]
|
branches: ['master']
|
||||||
# paths:
|
paths:
|
||||||
# - 'packages/i18n/**'
|
- 'packages/i18n/**'
|
||||||
# - '.github/workflows/languages-sync.yml'
|
- '.github/workflows/languages-sync.yml'
|
||||||
# pull_request:
|
pull_request:
|
||||||
# branches: [ "feat/sync-languages" ]
|
branches: ['master']
|
||||||
# paths:
|
paths:
|
||||||
# - 'packages/i18n/**'
|
- 'packages/i18n/**'
|
||||||
# - '.github/workflows/languages-sync.yml'
|
- '.github/workflows/languages-sync.yml'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# Cancels all previous workflow runs for pull requests that have not completed.
|
# Cancels all previous workflow runs for pull requests that have not completed.
|
||||||
@@ -49,14 +49,14 @@ jobs:
|
|||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Check Language Key
|
- name: Check Language Key
|
||||||
if: github.ref != 'feat/sync-languages'
|
if: github.ref != 'refs/heads/master'
|
||||||
working-directory: ./packages/i18n
|
working-directory: ./packages/i18n
|
||||||
run: pnpm run sync-languages:check
|
run: pnpm run sync-languages:check
|
||||||
env:
|
env:
|
||||||
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
|
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
|
||||||
|
|
||||||
- name: Sync Languages
|
- name: Sync Languages
|
||||||
if: github.ref == 'feat/sync-languages'
|
if: github.ref == 'refs/heads/master'
|
||||||
working-directory: ./packages/i18n
|
working-directory: ./packages/i18n
|
||||||
run: pnpm run sync-languages
|
run: pnpm run sync-languages
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user