Skip to content

Commit cd3252c

Browse files
Update samples.yaml to get basename of file
1 parent 852ebf0 commit cd3252c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/samples.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ jobs:
6868
echo "Testing $file"
6969
if [[ -f ${file} ]]; then
7070
# File exists, so needs to be listed.
71-
name=basename $file
72-
echo $name
71+
echo $(basename $file)
72+
name=echo $(basename $file)
7373
if ! grep -q $name ${README}; then
7474
echo "Error: Sample not listed in README ($name)"
7575
exit 1
7676
fi
7777
else
7878
# File does not exist, ensure it's not listed
79-
name=basename $file
79+
name=echo $(basename $file)
8080
if grep -q $name ${README}; then
8181
echo "Error: Sample should not be listed in README ($name)"
8282
exit 1

0 commit comments

Comments
 (0)