Browse Source

Use PHP 8 in translation update actions (#379)

* use PHP 8 in translation actions
pull/381/head
Steel Wagstaff 2 years ago committed by GitHub
parent
commit
e9a67200c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .github/workflows/standards-and-tests.yml
  2. 2
      .github/workflows/update-pot.yml
  3. 2
      .github/workflows/update-translations.yml
  4. 1
      README.md

6
.github/workflows/standards-and-tests.yml

@ -13,9 +13,9 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
php: [8.0, 8.1] php: [ 8.0, 8.1 ]
os: [ubuntu-20.04] os: [ ubuntu-20.04 ]
wordpress: [6.1.1, latest] wordpress: [ 6.1.1, latest ]
include: include:
- experimental: true - experimental: true
- experimental: false - experimental: false

2
.github/workflows/update-pot.yml

@ -17,7 +17,7 @@ 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.4' php-version: '8.0'
tools: composer, wp-cli/wp-cli-bundle tools: composer, wp-cli/wp-cli-bundle
- name: Update POT file - 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\"}" 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\"}"

2
.github/workflows/update-translations.yml

@ -18,7 +18,7 @@ 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.4' php-version: '8.0'
tools: composer, wp-cli/wp-cli-bundle tools: composer, wp-cli/wp-cli-bundle
- name: Generate MO files - name: Generate MO files
run: wp i18n make-mo languages run: wp i18n make-mo languages

1
README.md

@ -37,7 +37,6 @@ Aldine is the default theme for the home page of [Pressbooks](https://pressbooks
* Full release history available at: https://github.com/pressbooks/pressbooks-aldine/releases * Full release history available at: https://github.com/pressbooks/pressbooks-aldine/releases
## Upgrade Notices ## Upgrade Notices
### Aldine 1.18.0 ### Aldine 1.18.0
* Aldine requires PHP >= 8.0 * Aldine requires PHP >= 8.0
* Aldine requires WordPress >= 6.1.1 * Aldine requires WordPress >= 6.1.1

Loading…
Cancel
Save