Skip to content

Commit 6256e50

Browse files
committed
Fix find call in shell GHA
1 parent 32261e6 commit 6256e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/shell.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- run: >-
4040
find .
4141
-name '*.sh'
42-
-not -name .git
42+
-not -path '*/.git/*'
4343
-type f
4444
-print0
4545
| xargs -0 -P"$(nproc)" -I{} bash -n "{}"
@@ -53,7 +53,7 @@ jobs:
5353
with:
5454
args: >-
5555
find .
56-
-not -name .git
56+
-not -path '*/.git/*'
5757
-name '*.sh'
5858
-type f
5959
-print0

0 commit comments

Comments
 (0)