Skip to content

Commit

Permalink
Split Transifex upload out of Translate CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Oct 28, 2024
1 parent 6a7ac4d commit 858c56e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/translate-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Translate
on:
workflow_dispatch: {}
push:
branches: [master]
paths: ['**/*.resx', '!**/*.*.resx'] # non-localized resource files

jobs:
translate-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false

- name: Transifex Push
run: ./0install.sh run https://apps.0install.net/devel/transifex-cli.xml --token ${{secrets.TRANSIFEX_API_KEY}} push --source
7 changes: 0 additions & 7 deletions .github/workflows/translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ on:
workflow_dispatch: {}
schedule:
- cron: '0 7 15 * *'
push:
branches: [master]
paths:
- '**/*.resx'
- '!**/*.*.resx' # Don't trigger again for updated translations

jobs:
translate:
Expand All @@ -18,8 +13,6 @@ jobs:
fetch-depth: 0
show-progress: false

- name: Transifex Push
run: ./0install.sh run https://apps.0install.net/devel/transifex-cli.xml --token ${{secrets.TRANSIFEX_API_KEY}} push --source
- name: Transifex Pull (fully translated)
run: ./0install.sh run https://apps.0install.net/devel/transifex-cli.xml --token ${{secrets.TRANSIFEX_API_KEY}} pull --translations --mode translator --all --minimum-perc 100
- name: Transifex Pull (partially translated) # Only languages that can be completed with Machine Translation
Expand Down

0 comments on commit 858c56e

Please sign in to comment.