Skip to content

Commit d93829c

Browse files
authored
Feat: Create GitHub workflow to synchronize locales daily
1 parent 764508c commit d93829c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.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 * * *"
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)