Retrieve i18n from Transifex #3048
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Retrieve i18n from Transifex | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 */6 * * *' | |
jobs: | |
retrieve-18n: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
- name: Retrieve i18n from Transifex and create PR if applies | |
uses: c2corg/transifex-pull-request-action@v5 | |
with: | |
transifex_token: ${{ secrets.TRANSIFEX_TOKEN }} | |
transifex_organisation: camptocamp-association | |
transifex_project: c2corg_ui | |
transifex_resource: sports | |
output: src/helpers/i18n | |
locales: ca, de, en, es, eu, fr, hu, it, ru, sl, zh_CN | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: transifex/i18n | |
base_branch: main | |
transform: none | |
labels: i18n |