mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 10:04:53 +02:00
Add workflows to sync locales
This commit is contained in:
parent
0070c3cfe3
commit
4eaedf0e54
14
.github/workflows/locales-sync.yml
vendored
Normal file
14
.github/workflows/locales-sync.yml
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
name: "Synchronize locales"
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 1-5"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
sync-with-transifex:
|
||||
name: "Sync with transifex"
|
||||
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1"
|
||||
secrets:
|
||||
github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}"
|
||||
transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"
|
13
.github/workflows/locales-update-source.yml
vendored
Normal file
13
.github/workflows/locales-update-source.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
name: "Update locales sources"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
jobs:
|
||||
push-on-transifex:
|
||||
name: "Push locales sources"
|
||||
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-push-sources.yml@v1"
|
||||
secrets:
|
||||
transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"
|
Loading…
x
Reference in New Issue
Block a user