Skip to content

Commit b6a1cb0

Browse files
committed
another test
1 parent f6a30dc commit b6a1cb0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/partials-audit.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
FILENAME=${TEMP_PATH%.mdx}
3939
4040
# Construct the individual search strings for product and file
41-
# We escape the quotes to ensure they are treated as part of the string.
4241
SEARCH_PRODUCT="product=\"$PRODUCT\""
4342
SEARCH_FILE="file=\"$FILENAME\""
4443
@@ -49,9 +48,9 @@ jobs:
4948
echo " - SEARCH_FILE: $SEARCH_FILE"
5049
# --- END LOGGING ---
5150
52-
# Use Perl to search for a multi-line <Render> component with both values.
53-
# The entire logic is now in a single `-e` block, fixing the syntax error.
54-
if ! perl -ne "exit 0 if /<Render.*?(?:\s|)$SEARCH_PRODUCT.*?(?:\s|)$SEARCH_FILE.*?\/?\>/s; exit 1" ./*/*.mdx; then
51+
# Use Perl to search for a multi-line <Render> component with both values, regardless of order.
52+
# The logical 'or' operator checks for both argument sequences.
53+
if ! perl -ne "exit 0 if (/<Render.*?(?:\s|)$SEARCH_PRODUCT.*?(?:\s|)$SEARCH_FILE.*?\/?\>/s or /<Render.*?(?:\s|)$SEARCH_FILE.*?(?:\s|)$SEARCH_PRODUCT.*?\/?\>/s); exit 1" ./*/*.mdx; then
5554
UNUSED_FILES+="$FILE\n"
5655
echo " -> UNUSED! Adding to list."
5756
else

0 commit comments

Comments
 (0)