Skip to content

Commit

Permalink
chore: add update mo action, update deps & version (#337)
Browse files Browse the repository at this point in the history
* chore: add update mo action, update deps & version

* chore: remove unneeded parameter

* chore: use reusable workflow

* chore: update build assets and dependencies
  • Loading branch information
SteelWagstaff authored Feb 29, 2024
1 parent 9a50789 commit 28634cc
Show file tree
Hide file tree
Showing 12 changed files with 1,659 additions and 1,182 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
matrix:
php: [8.1, 8.2]
os: [ubuntu-20.04]
wordpress: [6.3.2, latest]
wordpress: [6.4.3, latest]
include:
- experimental: true
- experimental: false
php: 8.1
wordpress: 6.3.2
wordpress: 6.4.3

name: Tests - PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }}

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/update-mo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update .mo files

on:
pull_request:
branches: [ dev ]
paths:
- 'languages/*.po'
workflow_dispatch:

jobs:
update-mo-files:
uses: pressbooks/reusable-workflows/.github/workflows/update-mo.yml@dev
6 changes: 3 additions & 3 deletions .github/workflows/update-pot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
with:
token: ${{ secrets.PAT_FOR_GITHUB_ACTIONS }}
labels: automerge-pot
commit-message: 'chore(l10n): update languages/pressbooks.pot'
title: 'chore(l10n): update languages/pressbooks.pot'
body: 'This pull request updates the POT file for the Pressbooks project.'
commit-message: 'chore(l10n): update pot file'
title: 'chore(l10n): update pot file'
body: 'This pull request updates the POT file for this plugin.'
branch: chore/update-pot-file
- name: Merge pull request with updated POT file
if: ${{ steps.cprpot.outputs.pull-request-number }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.10",
"pressbooks/pressbooks": "dev-dev",
"yoast/phpunit-polyfills": "^1.0"
"yoast/phpunit-polyfills": "^1.1"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
Loading

0 comments on commit 28634cc

Please sign in to comment.