Skip to content

Commit

Permalink
Feat(build): implement translate CI
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Sep 4, 2024
1 parent 2d6e8ce commit 4e7d0a8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/transifex_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Transifex Push"

on:
push:
branches:
- "add_transifex_ci"

jobs:
transifex_push:
name: "Transifex Push"
uses: "stonebuzz/plugin-translation-workflows/.github/workflows/transifex_push.yml@v1"
secrets:
tx_token: "${{ secrets.TRANSLATE_TOKEN }}"
based_branch: "add_transifex_ci"
16 changes: 16 additions & 0 deletions .github/workflows/transifex_push_pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Transifex Push / Pull"

on:
schedule:
- cron: "0 0 * * *"

jobs:
transifex_push_pull:
permissions:
contents: "write"
pull-requests: "write"
name: "Transifex Push / Pull"
uses: "stonebuzz/plugin-translation-workflows/.github/workflows/transifex_push_pull.yml@v1"
secrets:
tx_token: "${{ secrets.TRANSLATE_TOKEN }}"
based_branch: "add_transifex_ci"
3 changes: 1 addition & 2 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ host = https://www.transifex.com
[o:teclib:p:glpi-project-plugin-escalade:r:escalade-pot]
file_filter = locales/<lang>.po
source_file = locales/escalade.pot
source_lang = en
type = PO
source_lang = en_GB

0 comments on commit 4e7d0a8

Please # to comment.