pressbooks aldine theme the theme used for the front page or default book
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

name: Update translations from Transifex
on: workflow_dispatch
jobs:
update-translations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PAT_FOR_GITHUB_ACTIONS }}
- name: Install Transifex Client
run: sudo pip install transifex-client
- name: Pull translations from Transifex
run: tx pull --all --force --minimum-perc=25
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer, wp-cli/wp-cli-bundle
- name: Generate MO files
run: wp i18n make-mo languages
# Remove this step once you are satisfied with the results; alternatively, you can leave it in place and remove
# the commented out step that follows.
- name: Open PR with changes
uses: peter-evans/create-pull-request@v4
with:
title: 'chore(l10n): update translations'
# - name: Commit updated translation files
# uses: stefanzweifel/git-auto-commit-action@v4.13.1
# with:
# commit_message: 'chore(l10n): update translations'
# file_pattern: '*.mo'