Skip to content

Commit 91a7082

Browse files
codebytesCopilot
andcommitted
Simplify workflow path filters by removing unnecessary negation pattern
Remove the '!\*\*' exclude-all-then-include pattern from dotnet and docker workflows. The simple inclusive path filter ('sample-dir/\*\*') produces identical behavior and matches the convention used by the node workflows. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6103dbb commit 91a7082

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

.github/workflows/10-dotnet.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ on:
55
push:
66
branches: [main]
77
paths:
8-
- '!**'
98
- 'dotnet-sample/**'
109
pull_request:
1110
branches: [main]
1211
paths:
13-
- '!**'
1412
- 'dotnet-sample/**'
1513

1614
permissions:

.github/workflows/docker-image.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ on:
55
push:
66
branches: [main]
77
paths:
8-
- '!**'
98
- 'container-example/**'
109
pull_request:
1110
branches: [main]
1211
paths:
13-
- '!**'
1412
- 'container-example/**'
1513

1614
defaults:

0 commit comments

Comments
 (0)