|
|
|
|
@ -6,7 +6,7 @@ jobs:
|
|
|
|
|
update-translations: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
token: ${{ secrets.PAT_FOR_GITHUB_ACTIONS }} |
|
|
|
|
- name: Install Transifex Client |
|
|
|
|
@ -22,14 +22,8 @@ jobs:
|
|
|
|
|
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 |
|
|
|
|
- name: Commit updated translation files |
|
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4.13.1 |
|
|
|
|
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' |
|
|
|
|
commit_message: 'chore(l10n): update translations' |
|
|
|
|
file_pattern: '*.mo' |
|
|
|
|
|