File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -134,13 +134,15 @@ jobs:
134134
135135 CHANGED_FILES=$(git diff --name-only "origin/$GITHUB_BASE_REF..")
136136 # Check if changes are ONLY in configure/Makefile files
137- if echo "$CHANGED_FILES" | grep -qE '^(configure.*|Makefile.*|.*\.m4)$' && \
138- ! echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile.*|.*\.m4)$'; then
139- # Only configure/Makefile files changed, skip Windows CI
140- echo "run-windows=false" >> "$GITHUB_OUTPUT"
141- else
142- # Other files changed, run Windows CI
143- echo "run-windows=true" >> "$GITHUB_OUTPUT"
137+ if [ "$GITHUB_BASE_REF" = "main" ]; then
138+ if echo "$CHANGED_FILES" | grep -qE '^(configure.*|Makefile.*|.*\.m4)$' && \
139+ ! echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile.*|.*\.m4)$'; then
140+ # Only configure/Makefile files changed, skip Windows CI
141+ echo "run-windows=false" >> "$GITHUB_OUTPUT"
142+ else
143+ # Other files changed, run Windows CI
144+ echo "run-windows=true" >> "$GITHUB_OUTPUT"
145+ fi
144146 fi
145147
146148 - name : Compute hash for config cache key
You can’t perform that action at this time.
0 commit comments