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 @@ -119,13 +119,15 @@ jobs:
119119
120120 CHANGED_FILES=$(git diff --name-only "origin/$GITHUB_BASE_REF..")
121121 # Check if changes are ONLY in configure/Makefile files
122- if echo "$CHANGED_FILES" | grep -qE '^(configure.*|Makefile.*|.*\.m4)$' && \
123- ! echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile.*|.*\.m4)$'; then
124- # Only configure/Makefile files changed, skip Windows CI
125- echo "run-windows=false" >> "$GITHUB_OUTPUT"
126- else
127- # Other files changed, run Windows CI
128- echo "run-windows=true" >> "$GITHUB_OUTPUT"
122+ if [ "$GITHUB_BASE_REF" = "main" ]; then
123+ if echo "$CHANGED_FILES" | grep -qE '^(configure.*|Makefile.*|.*\.m4)$' && \
124+ ! echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile.*|.*\.m4)$'; then
125+ # Only configure/Makefile files changed, skip Windows CI
126+ echo "run-windows=false" >> "$GITHUB_OUTPUT"
127+ else
128+ # Other files changed, run Windows CI
129+ echo "run-windows=true" >> "$GITHUB_OUTPUT"
130+ fi
129131 fi
130132
131133 - name : Compute hash for config cache key
You can’t perform that action at this time.
0 commit comments