diff --git a/.github/workflows/reusable-change-detection.yml b/.github/workflows/reusable-change-detection.yml index 4432f84b278ebc..56a627514d29af 100644 --- a/.github/workflows/reusable-change-detection.yml +++ b/.github/workflows/reusable-change-detection.yml @@ -124,13 +124,14 @@ jobs: # Get changed files CHANGED_FILES=$(git diff --name-only "origin/$GITHUB_BASE_REF..") - # Check if changes are only in configure/Makefile files - if echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile.*|.*\.m4)$'; then - # Other files changed, run Windows CI - echo "run-windows=true" >> "$GITHUB_OUTPUT" - else + # Check if changes are ONLY in configure/Makefile files + if echo "$CHANGED_FILES" | grep -qE '^(configure.*|Makefile.*|.*\.m4)$' && \ + ! echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile.*|.*\.m4)$'; then # Only configure/Makefile files changed, skip Windows CI echo "run-windows=false" >> "$GITHUB_OUTPUT" + else + # Other files changed, run Windows CI + echo "run-windows=true" >> "$GITHUB_OUTPUT" fi fi - name: Compute hash for config cache key