Skip to content
This repository has been archived by the owner on May 17, 2020. It is now read-only.

Latest commit

 

History

History
35 lines (28 loc) · 870 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 870 Bytes

transifex-action

Push sources and pulls translations.

Usage

This action is usually called in a schedule workflow like this:

name: Translations Sync

on:
  schedule:
    - cron: '0 15 * * 0'

jobs:
  update-translations:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Run lupdate
        uses: liri-infra/lupdate-action@master
      - name: Push sources and pull translations
        uses: liri-infra/transifex-action@master
        with:
            tx_token: ${{ secrets.TX_TOKEN }}
            ssh_key: ${{ secrets.CI_SSH_KEY }}
            push_sources: true
            pull_translations: true

The example checks out the project, configures git to push with a ssh key, then update .ts files, push them to Transifex and pull back the translations refreshed with the new sources.