From 8a4c051840c7b26c59a9b8b7964063d28912cef6 Mon Sep 17 00:00:00 2001 From: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com> Date: Tue, 26 Mar 2024 18:14:34 +0100 Subject: [PATCH] Fix site i18n workflow (#1890) - Clone translations into demo/site/lang/comet-demo-lang - Update site translations --- .github/workflows/i18n.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml index 0f6f1695cf..39317ad3a9 100644 --- a/.github/workflows/i18n.yml +++ b/.github/workflows/i18n.yml @@ -25,13 +25,20 @@ jobs: token: ${{ secrets.VIVID_PLANET_BOT_TOKEN }} path: "demo/admin/lang/comet-lang" - - name: "Demo: Clone translations" + - name: "Demo Admin: Clone translations" uses: actions/checkout@v3 with: repository: vivid-planet/comet-demo-lang token: ${{ secrets.VIVID_PLANET_BOT_TOKEN }} path: "demo/admin/lang/comet-demo-lang" + - name: "Demo Site: Clone translations" + uses: actions/checkout@v3 + with: + repository: vivid-planet/comet-demo-lang + token: ${{ secrets.VIVID_PLANET_BOT_TOKEN }} + path: "demo/site/lang/comet-demo-lang" + - uses: pnpm/action-setup@v2 with: version: 8 @@ -50,7 +57,7 @@ jobs: pnpm run intl:extract cp -r lang/* demo/admin/lang/comet-lang/ - - name: "Library: Update translateable strings" + - name: "Library: Update translatable strings" uses: EndBug/add-and-commit@v9 with: cwd: "./demo/admin/lang/comet-lang" @@ -67,7 +74,12 @@ jobs: pnpm run intl:extract cp -r lang-extracted/* lang/comet-demo-lang/site - - name: "Demo: Update translateable strings" + - name: "Demo Admin: Update translatable strings" uses: EndBug/add-and-commit@v9 with: cwd: "./demo/admin/lang/comet-demo-lang" + + - name: "Demo Site: Update translatable strings" + uses: EndBug/add-and-commit@v9 + with: + cwd: "./demo/site/lang/comet-demo-lang"