|
|
@ -16,20 +16,18 @@ jobs: |
|
|
|
- name: Setup PHP with tools |
|
|
|
- name: Setup PHP with tools |
|
|
|
uses: shivammathur/setup-php@v2 |
|
|
|
uses: shivammathur/setup-php@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
php-version: '7.3' |
|
|
|
php-version: '7.4' |
|
|
|
tools: composer, wp-cli |
|
|
|
tools: composer, wp-cli/wp-cli-bundle |
|
|
|
- name: Install dependencies |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
wp package install wp-cli/i18n-command:2.2.8 |
|
|
|
|
|
|
|
cd /home/runner/.wp-cli/packages/ |
|
|
|
|
|
|
|
composer config repositories.wp-cli '{"type": "composer","url": "https://wp-cli.org/package-index/","canonical": false}' |
|
|
|
|
|
|
|
cd ./ |
|
|
|
|
|
|
|
wp package install pressbooks/pb-cli:2.1.0 |
|
|
|
|
|
|
|
composer require jenssegers/blade:1.1.0 |
|
|
|
|
|
|
|
- name: Update POT file |
|
|
|
- name: Update POT file |
|
|
|
run: wp pb make-pot . languages/pressbooks-aldine.pot --require=vendor/autoload.php --domain=pressbooks-aldine --slug=pressbooks-aldine --package-name="Aldine" --headers="{\"Report-Msgid-Bugs-To\":\"https://github.com/pressbooks/pressbooks-aldine/issues\"}" |
|
|
|
run: wp i18n make-pot . languages/pressbooks-aldine.pot --domain=pressbooks-aldine --slug=pressbooks-aldine --package-name="Aldine" --headers="{\"Report-Msgid-Bugs-To\":\"https://github.com/pressbooks/pressbooks-aldine/issues\"}" |
|
|
|
- name: Commit updated POT file |
|
|
|
# Remove this step once you are satisfied with the results; alternatively, you can leave it in place and remove |
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4.13.1 |
|
|
|
# the commented out step that follows. |
|
|
|
|
|
|
|
- name: Open PR with changes |
|
|
|
|
|
|
|
uses: peter-evans/create-pull-request@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
commit_message: 'chore(l10n): update languages/pressbooks-aldine.pot' |
|
|
|
title: 'chore(l10n): update languages/pressbooks-aldine.pot' |
|
|
|
file_pattern: '*.pot' |
|
|
|
# - name: Commit updated POT file |
|
|
|
|
|
|
|
# uses: stefanzweifel/git-auto-commit-action@v4.1.1 |
|
|
|
|
|
|
|
# with: |
|
|
|
|
|
|
|
# commit_message: 'chore(l10n): update languages/pressbooks-aldine.pot' |
|
|
|
|
|
|
|
# file_pattern: '*.pot' |
|
|
|