Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: update workflow

JimmFlye3469b435f83
diff --git a/.github/workflows/languages-sync.yml b/.github/workflows/languages-sync.yml
index 50fe3dbec1..3cacc35749 100644
--- a/.github/workflows/languages-sync.yml
+++ b/.github/workflows/languages-sync.yml
@@ -1,16 +1,16 @@
name: Languages Sync
on:
- # push:
- # branches: [ "feat/sync-languages" ]
- # paths:
- # - 'packages/i18n/**'
- # - '.github/workflows/languages-sync.yml'
- # pull_request:
- # branches: [ "feat/sync-languages" ]
- # paths:
- # - 'packages/i18n/**'
- # - '.github/workflows/languages-sync.yml'
+ push:
+ branches: ['master']
+ paths:
+ - 'packages/i18n/**'
+ - '.github/workflows/languages-sync.yml'
+ pull_request:
+ branches: ['master']
+ paths:
+ - 'packages/i18n/**'
+ - '.github/workflows/languages-sync.yml'
workflow_dispatch:
# Cancels all previous workflow runs for pull requests that have not completed.
@@ -49,14 +49,14 @@ jobs:
run: pnpm install
- name: Check Language Key
- if: github.ref != 'feat/sync-languages'
+ if: github.ref != 'refs/heads/master'
working-directory: ./packages/i18n
run: pnpm run sync-languages:check
env:
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
- name: Sync Languages
- if: github.ref == 'feat/sync-languages'
+ if: github.ref == 'refs/heads/master'
working-directory: ./packages/i18n
run: pnpm run sync-languages
env: