|
|
@ -20,18 +20,16 @@ jobs: |
|
|
|
tools: composer, wp-cli |
|
|
|
tools: composer, wp-cli |
|
|
|
- name: Install dependencies |
|
|
|
- name: Install dependencies |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
wp package install wp-cli/i18n-command:2.2.6 |
|
|
|
wp package install wp-cli/i18n-command:2.2.8 |
|
|
|
wp package install pressbooks/pb-cli:dev-dev#800cec8 |
|
|
|
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 |
|
|
|
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 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\"}" |
|
|
|
# Remove the next four lines and uncomment the last five lines once the process has been confirmed to work as desired. |
|
|
|
- name: Commit updated POT file |
|
|
|
- uses: actions/upload-artifact@v2 |
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4.1.1 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: pressbooks-aldine.pot |
|
|
|
commit_message: 'chore(l10n): update languages/pressbooks-aldine.pot' |
|
|
|
path: 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' |
|
|
|
|
|
|
|