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.
33 lines
1.1 KiB
33 lines
1.1 KiB
name: Update POT file |
|
|
|
on: |
|
push: |
|
branches: |
|
- dev |
|
paths: |
|
- '**.php' |
|
- '**.js' |
|
|
|
jobs: |
|
update-pot: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@v2 |
|
- name: Setup PHP with tools |
|
uses: shivammathur/setup-php@v2 |
|
with: |
|
php-version: '7.4' |
|
tools: composer, wp-cli/wp-cli-bundle |
|
- name: Update POT file |
|
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\"}" |
|
# 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 languages/pressbooks-aldine.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'
|
|
|