From 36b256932fd5f540c33ae90002679666aa89f4ff Mon Sep 17 00:00:00 2001 From: mircearoata Date: Mon, 10 Jun 2024 18:04:03 +0200 Subject: [PATCH] Fix translations update running on PRs --- .github/workflows/push.yml | 19 ------------------- .github/workflows/translations.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/translations.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 1ddc6c31..264fe74a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -52,22 +52,3 @@ jobs: run: | pnpm lint pnpm check - - update-translations: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: ./.github/actions/setup - with: - backend: false - - - name: Install dependencies - working-directory: frontend - run: pnpm install - - - name: Update translation keys - working-directory: frontend - run: | - pnpm translations:compare -ak ${{ secrets.TOLGEE_KEY }} - pnpm translations:sync -ak ${{ secrets.TOLGEE_KEY }} diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml new file mode 100644 index 00000000..9cb081c6 --- /dev/null +++ b/.github/workflows/translations.yml @@ -0,0 +1,26 @@ +name: Update translations + +on: + push: + branches: + - master + +jobs: + update-translations: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: ./.github/actions/setup + with: + backend: false + + - name: Install dependencies + working-directory: frontend + run: pnpm install + + - name: Update translation keys + working-directory: frontend + run: | + pnpm translations:compare -ak ${{ secrets.TOLGEE_KEY }} + pnpm translations:sync -ak ${{ secrets.TOLGEE_KEY }} \ No newline at end of file