File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,12 @@ jobs:
93
93
sketches=""
94
94
files="$LIB_FILES $EXAMPLES_FILES"
95
95
for file in $files; do
96
- if [[ $file == " *.ino" ]]; then
96
+ if [[ $file == *.ino ]]; then
97
97
# If file ends with .ino, add it to the list of sketches
98
98
echo "Sketch found: $file"
99
99
sketches+="$file "
100
100
continue
101
- elif [[ $(dirname $file) == "**/ src" ]]; then
101
+ elif [[ $(basename $( dirname $file)) == "src" ]]; then
102
102
# If file is in a src directory, find all sketches in the parent/examples directory
103
103
echo "Library src file found: $file"
104
104
lib=$(dirname $(dirname $file))
@@ -151,6 +151,7 @@ jobs:
151
151
name : sketches_found
152
152
path : sketches_found.txt
153
153
overwrite : true
154
+ if-no-files-found : error
154
155
155
156
# Ubuntu
156
157
build-arduino-linux :
You can’t perform that action at this time.
0 commit comments