Skip to content

Commit 73fd445

Browse files
Update samples.yaml to get basename of file
1 parent 67321eb commit 73fd445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/samples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
echo "Testing $file"
6969
if [[ -f ${file} ]]; then
7070
# File exists, so needs to be listed.
71-
if ! grep -q $name ${README}; then
71+
if ! grep -q basename $file ${README}; then
7272
echo "Error: Sample not listed in README ($name)"
7373
exit 1
7474
fi

0 commit comments

Comments
 (0)