Skip to main content
This tool is for Phrase Strings only.
The Phrase Strings GitHub Action installs the Phrase CLI in your GitHub Actions workflow, enabling you to automate pushing and pulling translation files as part of your CI/CD pipeline.

Usage

Add the action to your workflow to install the Phrase CLI, then use it to sync your translation files:
steps:
  - uses: actions/checkout@v4
  - uses: phrase/setup-cli@v1
    with:
      version: 2.19.0
  - run: phrase pull
  - run: phrase push --wait
    env:
      PHRASE_ACCESS_TOKEN: ${{ secrets.PHRASE_ACCESS_TOKEN }}

Configuration

The action requires a .phrase.yml configuration file in your repository. Authentication is handled via the PHRASE_ACCESS_TOKEN environment variable, which should be stored as a GitHub Actions secret.

Phrase Strings GitHub Action on GitHub