Skip to content

Commit 5748a5f

Browse files
committed
👷 ci(github): enhance path filter debugging in workflows
- add json file listing for path filters to improve visibility - implement debug output for filtered paths and changes - refine filter patterns for better coverage and accuracy
1 parent d9ba4d1 commit 5748a5f

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,31 @@ jobs:
8181
- uses: dorny/paths-filter@v3
8282
id: filter
8383
with:
84-
predicate-quantifier: 'every'
84+
list-files: json
8585
filters: |
8686
src:
87-
- '**'
88-
- '!docs/**'
89-
- '!build/**'
90-
- '!.github/**'
87+
- 'src/**'
9188
docs:
9289
- 'docs/**'
9390
automation:
9491
- 'build/**'
95-
- '.github/workflows/**'
92+
- '.github/**'
93+
- name: "Debug Filter Results"
94+
shell: pwsh
95+
run: |
96+
Write-Output "=== PATH FILTER DEBUG ==="
97+
Write-Output "src filter result: ${{ steps.filter.outputs.src }}"
98+
Write-Output "docs filter result: ${{ steps.filter.outputs.docs }}"
99+
Write-Output "automation filter result: ${{ steps.filter.outputs.automation }}"
100+
Write-Output "src files:"
101+
Write-Output '${{ steps.filter.outputs.src_files }}'
102+
Write-Output "docs files:"
103+
Write-Output '${{ steps.filter.outputs.docs_files }}'
104+
Write-Output "automation files:"
105+
Write-Output '${{ steps.filter.outputs.automation_files }}'
106+
Write-Output "changes array:"
107+
Write-Output '${{ steps.filter.outputs.changes }}'
108+
Write-Output "========================="
96109
- name: "Build NKDAgility Outputs"
97110
shell: pwsh
98111
id: nkdagility

0 commit comments

Comments
 (0)