From 189bc48030753c956931b29242df609d1d2959c8 Mon Sep 17 00:00:00 2001 From: trustdemons05 Date: Sun, 17 May 2026 15:12:11 +0530 Subject: [PATCH] Add note about git submodule path matching for workflow triggers --- .../actions/workflows/triggering-a-workflow-paths1.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/reusables/actions/workflows/triggering-a-workflow-paths1.md b/data/reusables/actions/workflows/triggering-a-workflow-paths1.md index 6fc9ec1cca2a..491c5b1a49c7 100644 --- a/data/reusables/actions/workflows/triggering-a-workflow-paths1.md +++ b/data/reusables/actions/workflows/triggering-a-workflow-paths1.md @@ -11,3 +11,6 @@ Use the `paths` filter when you want to include file path patterns or when you w If you define both `branches`/`branches-ignore` and `paths`/`paths-ignore`, the workflow will only run when both filters are satisfied. The `paths` and `paths-ignore` keywords accept glob patterns that use the `*` and `**` wildcard characters to match more than one path name. For more information, see the [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet). + +> [!NOTE] +> If you want to trigger a workflow when a change is made to a file inside a git submodule, use the path to the top-level submodule directory. Path filters cannot match files inside a submodule.