Skip to content

Commit 4eaedf0

Browse files
committed
Add workflows to sync locales
1 parent 0070c3c commit 4eaedf0

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/locales-sync.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Synchronize locales"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * 1-5"
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync-with-transifex:
10+
name: "Sync with transifex"
11+
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1"
12+
secrets:
13+
github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}"
14+
transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Update locales sources"
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
8+
jobs:
9+
push-on-transifex:
10+
name: "Push locales sources"
11+
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-push-sources.yml@v1"
12+
secrets:
13+
transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"

0 commit comments

Comments
 (0)