Skip to content

Commit

Permalink
Update samples.yaml to get basename of file
Browse files Browse the repository at this point in the history
  • Loading branch information
shilpakancharla committed Aug 16, 2024
1 parent 67321eb commit 73fd445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/samples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
echo "Testing $file"
if [[ -f ${file} ]]; then
# File exists, so needs to be listed.
if ! grep -q $name ${README}; then
if ! grep -q basename $file ${README}; then
echo "Error: Sample not listed in README ($name)"
exit 1
fi
Expand Down

0 comments on commit 73fd445

Please sign in to comment.