[CI] Fix running stubtest when multiple stubs have changed (#14677)

This commit is contained in:
Brian Schubert
2025-09-05 04:37:47 -04:00
committed by GitHub
parent 07557a4316
commit 64aa465f68
+1 -1
View File
@@ -56,7 +56,7 @@ jobs:
function find_stubs {
git diff --name-only origin/${{ github.base_ref }} HEAD | \
egrep ^stubs/ | cut -d "/" -f 2 | sort -u | \
(while read stub; do [ -d "stubs/$stub" ] && echo "$stub" || true; done)
(while read stub; do [ -d "stubs/$stub" ] && echo -n "$stub " || true; done)
}
STUBS=$(find_stubs || echo '')
echo "Changed stubs: $STUBS"