Skip to content

Commit

Permalink
Fix translations update running on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Jun 10, 2024
1 parent fe68238 commit 36b2569
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
26 changes: 26 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 36b2569

Please sign in to comment.