Commit 97140c87a23 for woocommerce
commit 97140c87a23b78a3ad511391b0ce55de12cea933
Author: Brandon Kraft <public@brandonkraft.com>
Date: Mon Mar 30 15:35:31 2026 -0500
Fix workflow path filters to correctly re-include workflow files (#63935)
GitHub Actions paths-ignore with ! re-include patterns does not
reliably trigger workflows when only the re-included files change.
Replace paths-ignore with paths (include/exclude) in pr-build-life-branch.yml, ci.yml,
build-live-branch.yml, and changelog-auto-add.yml so each workflow
correctly re-runs when its own workflow file is modified.
diff --git a/.github/workflows/build-live-branch.yml b/.github/workflows/build-live-branch.yml
index 9e57458c211..006007e5448 100644
--- a/.github/workflows/build-live-branch.yml
+++ b/.github/workflows/build-live-branch.yml
@@ -3,22 +3,23 @@ on:
push:
branches:
- trunk
- paths-ignore:
- - 'docs/**'
- - 'packages/php/**'
- - 'tools/**'
- - '**/changelog/**'
- - '**/changelog.txt'
- - '**/readme.txt'
- - '.gitignore'
- - '.coderabbit.yml'
- - 'CODEOWNERS'
- - '**/tests/**'
- - '**/*.md'
- - '.husky/**'
- - '.cursor/**'
- - '.github/**'
- - '!.github/workflows/build-live-branch.yml'
+ paths:
+ - '**'
+ - '!docs/**'
+ - '!packages/php/**'
+ - '!tools/**'
+ - '!**/changelog/**'
+ - '!**/changelog.txt'
+ - '!**/readme.txt'
+ - '!.gitignore'
+ - '!.coderabbit.yml'
+ - '!CODEOWNERS'
+ - '!**/tests/**'
+ - '!**/*.md'
+ - '!.husky/**'
+ - '!.cursor/**'
+ - '!.github/**'
+ - '.github/workflows/build-live-branch.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
diff --git a/.github/workflows/changelog-auto-add.yml b/.github/workflows/changelog-auto-add.yml
index 678754f665f..5d30fe936ca 100644
--- a/.github/workflows/changelog-auto-add.yml
+++ b/.github/workflows/changelog-auto-add.yml
@@ -2,14 +2,15 @@ name: 'Changelog Auto Add'
on:
pull_request_target:
types: [opened, synchronize, reopened, edited]
- paths-ignore:
- - 'docs/**'
- - '**/changelog/**'
- - '**/changelog.txt'
- - '.husky/**'
- - '.cursor/**'
- - '.github/**'
- - '!.github/workflows/changelog-auto-add.yml'
+ paths:
+ - '**'
+ - '!docs/**'
+ - '!**/changelog/**'
+ - '!**/changelog.txt'
+ - '!.husky/**'
+ - '!.cursor/**'
+ - '!.github/**'
+ - '.github/workflows/changelog-auto-add.yml'
workflow_dispatch:
inputs:
prNumber:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4af43dcee76..81b10e02be8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,17 +2,18 @@ name: 'CI'
on:
pull_request:
push:
- paths-ignore:
- - 'docs/**'
- - '**/changelog/**'
- - '.cursor/**'
- - '**/*.md'
- - '**/changelog.txt'
- - '.gitignore'
- - '.coderabbit.yml'
- - 'CODEOWNERS'
- - '.github/**'
- - '!.github/workflows/ci.yml'
+ paths:
+ - '**'
+ - '!docs/**'
+ - '!**/changelog/**'
+ - '!.cursor/**'
+ - '!**/*.md'
+ - '!**/changelog.txt'
+ - '!.gitignore'
+ - '!.coderabbit.yml'
+ - '!CODEOWNERS'
+ - '!.github/**'
+ - '.github/workflows/ci.yml'
branches:
- 'trunk'
- 'release/*'
diff --git a/.github/workflows/pr-build-live-branch.yml b/.github/workflows/pr-build-live-branch.yml
index f00d32f42e2..30dfd4664de 100644
--- a/.github/workflows/pr-build-live-branch.yml
+++ b/.github/workflows/pr-build-live-branch.yml
@@ -6,23 +6,25 @@ on:
- reopened
- synchronize
- ready_for_review
- paths-ignore:
- - 'docs/**'
- - 'packages/php/**'
- - '!packages/php/blueprint/**'
- - 'tools/**'
- - '**/changelog/**'
- - '**/changelog.txt'
- - '**/readme.txt'
- - '.gitignore'
- - '.coderabbit.yml'
- - 'CODEOWNERS'
- - '**/tests/**'
- - '**/*.md'
- - '.husky/**'
- - '.cursor/**'
- - '.github/**'
- - '!.github/workflows/pr-build-live-branch.yml'
+ paths:
+ - '**'
+ - '!docs/**'
+ - '!packages/php/**'
+ - 'packages/php/blueprint/**'
+ - '!tools/**'
+ - '!**/changelog/**'
+ - '!**/changelog.txt'
+ - '!**/readme.txt'
+ - '!.gitignore'
+ - '!.coderabbit.yml'
+ - '!CODEOWNERS'
+ - '!**/tests/**'
+ - '!**/*.md'
+ - '!.husky/**'
+ - '!.cursor/**'
+ - '!.github/**'
+ - '.github/workflows/pr-build-live-branch.yml'
+ - '.github/workflows/scripts/generate-playground-blueprint.js'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
diff --git a/.github/workflows/scripts/generate-playground-blueprint.js b/.github/workflows/scripts/generate-playground-blueprint.js
index bb1a56b75c8..102826de4e1 100644
--- a/.github/workflows/scripts/generate-playground-blueprint.js
+++ b/.github/workflows/scripts/generate-playground-blueprint.js
@@ -91,7 +91,7 @@ The changes in this pull request can be previewed and tested using a [WordPress
[Test this pull request with WordPress Playground](${ url }).
-Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a new commit.
+Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a commit that changes plugin code.
`;
if ( existingCommentId ) {
diff --git a/plugins/woocommerce/changelog/fix-playground-comment-refresh-on-blueprint-changes b/plugins/woocommerce/changelog/fix-playground-comment-refresh-on-blueprint-changes
new file mode 100644
index 00000000000..a15836ea372
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-playground-comment-refresh-on-blueprint-changes
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Fix workflow path filters to correctly re-run when workflow files change.