From 75af00d702bbf8fac95e933b99940113ed4f8d3e Mon Sep 17 00:00:00 2001 From: Oscar Arzola Date: Wed, 22 May 2024 15:57:51 -0400 Subject: [PATCH 1/3] fix: npm build action (#100) --- .github/workflows/auto-merge.yml | 2 +- .github/workflows/create-release.yml | 2 +- .github/workflows/ensure-npm-build.yml | 11 +++++++++++ .github/workflows/tests.yml | 4 ++-- .github/workflows/update-mo.yml | 2 +- .github/workflows/update-pot.yml | 2 +- src/assets/app.css | 3 +++ 7 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/ensure-npm-build.yml create mode 100644 src/assets/app.css diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index ce916dd..bae7085 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -6,7 +6,7 @@ on: jobs: translations: if: github.actor == 'pressbooks-ops' || github.actor == 'transifex-integration[bot]' || github.actor == 'dependabot[bot]' - uses: pressbooks/reusable-workflows/.github/workflows/auto-merge.yml@test-tag-release + uses: pressbooks/reusable-workflows/.github/workflows/auto-merge.yml@main with: pr_title_pattern: '^(chore\((l10n|i18n)\):)' secrets: inherit diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 47330aa..45566b0 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -6,5 +6,5 @@ on: jobs: deploy: - uses: pressbooks/reusable-workflows/.github/workflows/prepare-release.yml@test-tag-release + uses: pressbooks/reusable-workflows/.github/workflows/prepare-release.yml@main secrets: inherit diff --git a/.github/workflows/ensure-npm-build.yml b/.github/workflows/ensure-npm-build.yml new file mode 100644 index 0000000..d28d41c --- /dev/null +++ b/.github/workflows/ensure-npm-build.yml @@ -0,0 +1,11 @@ +name: Npm build ⚙️ + +on: + pull_request: + branches: [ dev ] + paths: + - "src/assets/**/*" + +jobs: + update-npm-build: + uses: pressbooks/reusable-workflows/.github/workflows/npm-build.yml@main diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bf06891..67b34b3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ on: jobs: plugin-tests: - uses: pressbooks/reusable-workflows/.github/workflows/pb-plugin-tests.yml@test-tag-release + uses: pressbooks/reusable-workflows/.github/workflows/pb-plugin-tests.yml@main secrets: inherit with: requires_pressbooks: true @@ -23,7 +23,7 @@ jobs: steps: - name: Trigger Bedrock Updates if: github.ref == 'refs/heads/dev' - uses: pressbooks/composer-autoupdate-bedrock@chore/add-tag-in-sns-message + uses: pressbooks/composer-autoupdate-bedrock@main env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/update-mo.yml b/.github/workflows/update-mo.yml index 325419b..3f48171 100644 --- a/.github/workflows/update-mo.yml +++ b/.github/workflows/update-mo.yml @@ -9,4 +9,4 @@ on: jobs: update-mo-files: - uses: pressbooks/reusable-workflows/.github/workflows/update-mo.yml@test-tag-release + uses: pressbooks/reusable-workflows/.github/workflows/update-mo.yml@main diff --git a/.github/workflows/update-pot.yml b/.github/workflows/update-pot.yml index a24340d..b416593 100644 --- a/.github/workflows/update-pot.yml +++ b/.github/workflows/update-pot.yml @@ -10,7 +10,7 @@ on: jobs: update-pot-file: - uses: pressbooks/reusable-workflows/.github/workflows/update-pot.yml@test-tag-release + uses: pressbooks/reusable-workflows/.github/workflows/update-pot.yml@main secrets: inherit with: domain: 'pressbooks-fake-plugin' diff --git a/src/assets/app.css b/src/assets/app.css new file mode 100644 index 0000000..09fef94 --- /dev/null +++ b/src/assets/app.css @@ -0,0 +1,3 @@ +body{ + margin: 0; +} From 32abb906c50b9a2f5cd44f489318ca6d3f9c4d76 Mon Sep 17 00:00:00 2001 From: Oscar Arzola Date: Wed, 22 May 2024 19:45:30 -0400 Subject: [PATCH 2/3] fix: npm build (#101) Co-authored-by: GitHub Actions --- .github/workflows/update-pot.yml | 5 ++--- languages/fake-plugin.pot | 4 ++-- src/App.php | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update-pot.yml b/.github/workflows/update-pot.yml index b416593..ff2a6a2 100644 --- a/.github/workflows/update-pot.yml +++ b/.github/workflows/update-pot.yml @@ -6,14 +6,13 @@ on: paths: - '**.php' - '**.js' - workflow_dispatch: - jobs: update-pot-file: - uses: pressbooks/reusable-workflows/.github/workflows/update-pot.yml@main + uses: pressbooks/reusable-workflows/.github/workflows/update-pot.yml@fix/pot-trigger secrets: inherit with: domain: 'pressbooks-fake-plugin' slug: 'pressbooks-fake-plugin' package_name: 'Pressbooks Fake Plugin' headers: '{"Report-Msgid-Bugs-To": "https://github.com/pressbooks/fake-plugin/issues"}' + pull_request_number: ${{ github.event.pull_request.number }} diff --git a/languages/fake-plugin.pot b/languages/fake-plugin.pot index 46a4766..59b645c 100644 --- a/languages/fake-plugin.pot +++ b/languages/fake-plugin.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-05-21T21:05:58+00:00\n" +"POT-Creation-Date: 2024-05-22T23:45:05+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.10.0\n" "X-Domain: pressbooks-fake-plugin\n" @@ -40,7 +40,7 @@ msgid "Hello, people!" msgstr "" #: src/App.php:14 -msgid "Hello, world!" +msgid "Hello, world 2!" msgstr "" #: src/App.php:19 diff --git a/src/App.php b/src/App.php index 54634a0..f08124a 100644 --- a/src/App.php +++ b/src/App.php @@ -11,7 +11,7 @@ public function __construct() public function __toString() { - return __('Hello, world!', 'pressbooks-fake-plugin'); + return __('Hello, world 2!', 'pressbooks-fake-plugin'); } public function hi() From 44be2437c893c61b7b31e4a2e9149125b0fd442a Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Wed, 22 May 2024 23:46:22 +0000 Subject: [PATCH 3/3] chore(l10n): Updates for project Fake Plugin Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions --- languages/es_ES.mo | Bin 897 -> 854 bytes languages/es_ES.po | 8 ++++---- languages/fr_FR.mo | Bin 917 -> 869 bytes languages/fr_FR.po | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/languages/es_ES.mo b/languages/es_ES.mo index 40a7eca10ea8a9069bc24560d5e3296c6c22c68b..a5180faa7ce9796425c45789b3a4450379afa62f 100644 GIT binary patch delta 162 zcmZo|*&6^BR2YH) delta 198 zcmcb{*2rFePl#nI0}!wQu?!IVfH*)<1EIh)H;`Qm#JoV<3B(|E(}7qTh_?W-7!Y3o zViP6?hUY+<2Z&{uA+#ot76$UofV4c2_5#u%^;tlg!7WidJ5?bdr!+k?kHI4~CnsM= zp*+7RCq;2$MFXS3#-I9(+=gZ$hL%=FCRT<9lZ}~f@Ob3sBpZXmlBh