Skip to content

Commit

Permalink
Moved CHANGED_FILES inside the if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed Jan 9, 2025
1 parent 3ebe034 commit d1f1d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable-change-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ jobs:
echo "run-cifuzz=false" >> "$GITHUB_OUTPUT"
fi
CHANGED_FILES=$(git diff --name-only "origin/$GITHUB_BASE_REF..")
# Check if changes are ONLY in configure/Makefile files
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.*|.*\.m4)$' && \
! echo "$CHANGED_FILES" | grep -qvE '^(configure.*|Makefile.*|.*\.m4)$'; then
# Only configure/Makefile files changed, skip Windows CI
Expand Down

0 comments on commit d1f1d61

Please sign in to comment.