Skip to content

Commit 4f96615

Browse files
committed
The key changes are:
Modified the logic to use two conditions: First check if there ARE configure/Makefile files (grep -qE) Then check if there are NO other files (! grep -qvE) Only skip Windows CI when BOTH conditions are true (only configure-related files changed) This way, Windows CI will be skipped only when ALL changed files are configure/Makefile related, and will run if there are any other changes
1 parent 08b69f6 commit 4f96615

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/reusable-change-detection.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,14 @@ jobs:
139139
# Get changed files
140140
CHANGED_FILES=$(git diff --name-only "origin/$GITHUB_BASE_REF..")
141141
142-
# Check if changes are only in configure/Makefile files
143-
if echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile.*|.*\.m4)$'; then
144-
# Other files changed, run Windows CI
145-
echo "run-windows=true" >> "$GITHUB_OUTPUT"
146-
else
142+
# Check if changes are ONLY in configure/Makefile files
143+
if echo "$CHANGED_FILES" | grep -qE '^(configure.*|Makefile.*|.*\.m4)$' && \
144+
! echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile.*|.*\.m4)$'; then
147145
# Only configure/Makefile files changed, skip Windows CI
148146
echo "run-windows=false" >> "$GITHUB_OUTPUT"
147+
else
148+
# Other files changed, run Windows CI
149+
echo "run-windows=true" >> "$GITHUB_OUTPUT"
149150
fi
150151
fi
151152
- name: Compute hash for config cache key

0 commit comments

Comments
 (0)