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 4ded171 commit e6fa954
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 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
10 changes: 1 addition & 9 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 All @@ -39,8 +32,7 @@ jobs:
source-lang: en
localization-filter: cs;el;es;fr;id;it;ja;ko;nl;pl;pt-PT;ro;ru;zh
glossary-name: Zero Install
context: User interface for editor with menus and buttons.
excludes-regex: .*ImageResources.*
context: Command-line tool for building software packages. Downloads files from the internet.

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
Expand Down

0 comments on commit e6fa954

Please sign in to comment.