From 73fd4456a8336cb0961a7289145201548c6dd8a0 Mon Sep 17 00:00:00 2001 From: Shilpa Kancharla Date: Fri, 16 Aug 2024 13:11:35 -0700 Subject: [PATCH] Update samples.yaml to get basename of file --- .github/workflows/samples.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index 4c76a563b..422381038 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -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