Skip to content

Commit d7864ab

Browse files
committed
fix: make check-rust-examples.yml work with split guidelines
1 parent d1b17ab commit d7864ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/check-rust-examples.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ jobs:
424424
LEGACY_COUNT=0
425425
LEGACY_FILES=""
426426
427-
for file in $(find src/coding-guidelines -name "*.rst" 2>/dev/null); do
427+
# Check both .rst and .rst.inc files (per-guideline structure uses .rst.inc)
428+
for file in $(find src/coding-guidelines \( -name "*.rst" -o -name "*.rst.inc" \) 2>/dev/null); do
428429
COUNT=$(grep -c "^\s*\.\. code-block:: rust" "$file" 2>/dev/null || echo 0)
429430
if [ "$COUNT" -gt 0 ]; then
430431
LEGACY_FILES="$LEGACY_FILES\n- $file: $COUNT occurrences"

0 commit comments

Comments
 (0)