Skip to content

Commit 57a0eac

Browse files
committed
docs: clarify path filters for git submodule changes
1 parent ec3629a commit 57a0eac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎content/actions/reference/workflows-and-actions/workflow-syntax.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }}
113113
### Git diff comparisons
114114

115115
{% data reusables.actions.workflows.triggering-a-workflow-paths5 %}
116+
> [!NOTE]
117+
> **Changes to files in a git submodule:** For {% data variables.product.prodname_actions %} to detect changes to files inside a git submodule, filter on the path to the top-level submodule itself, not on paths within the submodule. For example, if a submodule is checked out at `submodules/my-library`, use `paths: - submodules/my-library/**`. The paths to individual files inside the submodule are not tracked by the parent repository's workflow filters.
116118

117119
## `on.schedule`
118120

0 commit comments

Comments
 (0)