Skip to content

Commit 6083d80

Browse files
committed
Fix
1 parent f60afa3 commit 6083d80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/push.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ jobs:
9393
sketches=""
9494
files="$LIB_FILES $EXAMPLES_FILES"
9595
for file in $files; do
96-
if [[ $file == "*.ino" ]]; then
96+
if [[ $file == *.ino ]]; then
9797
# If file ends with .ino, add it to the list of sketches
9898
echo "Sketch found: $file"
9999
sketches+="$file "
100100
continue
101-
elif [[ $(dirname $file) == "**/src" ]]; then
101+
elif [[ $(basename $(dirname $file)) == "src" ]]; then
102102
# If file is in a src directory, find all sketches in the parent/examples directory
103103
echo "Library src file found: $file"
104104
lib=$(dirname $(dirname $file))
@@ -151,6 +151,7 @@ jobs:
151151
name: sketches_found
152152
path: sketches_found.txt
153153
overwrite: true
154+
if-no-files-found: error
154155

155156
# Ubuntu
156157
build-arduino-linux:

0 commit comments

Comments
 (0)