Skip to content

Commit 7c20408

Browse files
authored
Merge pull request #94 from pertrai1/copilot/fix-workflow-for-reviews
Fix: Exclude test files from schedule-review workflow matching
2 parents 950cf32 + 5c97694 commit 7c20408

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/schedule-review.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ jobs:
8686
FILE_NAME="${BASH_REMATCH[4]}"
8787
8888
# Validate that the filename matches the problem slug (main solution file)
89-
if [[ "$FILE_NAME" == "$PROBLEM_SLUG" ]]; then
89+
# Exclude test files explicitly
90+
if [[ "$FILE_NAME" == "$PROBLEM_SLUG" ]] && [[ ! "$FILE_NAME" =~ \.test$ ]]; then
9091
MAIN_FILE="$file"
9192
echo "main_file=$MAIN_FILE" >> $GITHUB_OUTPUT
9293
echo "platform=$PLATFORM" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)