Skip to content

Commit

Permalink
Remove the main branch check
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed Feb 5, 2025
1 parent cb154c7 commit 0a6c924
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/reusable-change-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,15 @@ jobs:
echo "run-cifuzz=false" >> "$GITHUB_OUTPUT"
fi
if [ "$GITHUB_BASE_REF" = "main" ]; then
CHANGED_FILES=$(git diff --name-only "origin/$GITHUB_BASE_REF..")
# Check if changes are ONLY in configure/Makefile files
if echo "$CHANGED_FILES" | grep -qE '^(configure.*|Makefile(\.pre)?\.in|Makefile|.*\.m4)$' && \
! echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile(\.pre)?\.in|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
CHANGED_FILES=$(git diff --name-only "origin/$GITHUB_BASE_REF..")
# Check if changes are ONLY in configure/Makefile files
if echo "$CHANGED_FILES" | grep -qE '^(configure.*|Makefile(\.pre)?\.in|Makefile|.*\.m4)$' && \
! echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile(\.pre)?\.in|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
- name: Compute hash for config cache key
Expand Down

0 comments on commit 0a6c924

Please sign in to comment.