Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
globe

GitHub Action

Transifex CLI action

v1

Transifex CLI action

globe

Transifex CLI action

Invoke the Transifex CLI as part of a Github action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Transifex CLI action

uses: transifex/cli-action@v1

Learn more about this action in transifex/cli-action

Choose a version

Github Action for Transifex CLI

Transifex CLI homepage

Integrate the Transifex CLI within a Github action. Usage:

  1. Make sure your repository has a Transifex CLI configuration. If not, set it up with:

    tx init
    tx add  # Complete the interactive wizard
    git add .tx
    git commit -m "Add Transifex CLI configuration"
  2. Add a Transifex API token to your repository as a repository secret

  3. Use this in your Github action workflow:

    on: [push]
    jobs:
      Push-source-file:
        runs-on: ubuntu-latest
        steps:
          - name: Checkout
            uses: actions/checkout@v2
          - name: Push source file using transifex client
            uses: transifex/cli-action@v1
            with:
              token: ${{ secrets.TX_TOKEN }}

Action options

token (required): The Transifex API token to use for pushing

version (default: latest): The Transifex CLI version to use

args (default: push): Which arguments to pass to the tx command. By default, the CLI will push the source files of all resources configured in .tx/config.