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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
feat(i18n): add sync workflows
lawvs54f1db6fdccb
diff --git a/.github/workflows/languages-sync.yml b/.github/workflows/languages-sync.ymlnew file mode 100644index 0000000000..871307ebf4--- /dev/null+++ b/.github/workflows/languages-sync.yml@@ -0,0 +1,56 @@+name: Languages Sync++on:+ push:+ branches: [ "develop", "master" ]+ paths:+ - 'libs/datasource/i18n/**'+ - '.github/workflows/languages-sync.yml'+ pull_request:+ branches: [ "develop", "master" ]+ paths:+ - 'libs/datasource/i18n/**'+ - '.github/workflows/languages-sync.yml'++# Cancels all previous workflow runs for pull requests that have not completed.+# See https://docs.github.com/en/actions/using-jobs/using-concurrency+concurrency:+ # The concurrency group contains the workflow name and the branch name for+ # pull requests or the commit hash for any other events.+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}+ cancel-in-progress: true++jobs:+ main:+ strategy:+ matrix:+ node-version: [18]+ os: [ubuntu-latest]+ runs-on: ${{ matrix.os }}++ steps:+ - name: Checkout+ uses: actions/checkout@v3++ - name: Use pnpm+ uses: pnpm/action-setup@v2+ with:+ version: 7++ - name: Use Node.js ${{ matrix.node-version }}+ # https://github.com/actions/setup-node+ uses: actions/setup-node@v3+ with:+ node-version: ${{ matrix.node-version }}+ cache: 'pnpm'++ - name: Install node modules+ run: pnpm install++ - name: Check Language Key+ if: github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/master'+ run: pnpm run --recursive sync-languages:check++ - name: Sync Languages+ if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'+ run: pnpm run --recursive sync-languages