Skip to content

Commit

Permalink
Change the if condition to trigger for pull request instead of main b…
Browse files Browse the repository at this point in the history
…ranch
  • Loading branch information
srinivasreddy committed Jan 28, 2025
1 parent d1f1d61 commit 10a113b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-change-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
echo "run-cifuzz=false" >> "$GITHUB_OUTPUT"
fi
if [ "$GITHUB_BASE_REF" = "main" ]; then
if [ "$GITHUB_EVENT_NAME" == 'pull_request' ]; 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)$' && \
Expand Down

0 comments on commit 10a113b

Please sign in to comment.