From 10a113b1e761a66425deeccddde4a8ff1631e8a6 Mon Sep 17 00:00:00 2001 From: Srinivas Reddy Thatiparthy Date: Tue, 28 Jan 2025 16:21:43 +0530 Subject: [PATCH] Change the if condition to trigger for pull request instead of main branch --- .github/workflows/reusable-change-detection.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-change-detection.yml b/.github/workflows/reusable-change-detection.yml index 1a1f9eff5867cd..753e8ade756578 100644 --- a/.github/workflows/reusable-change-detection.yml +++ b/.github/workflows/reusable-change-detection.yml @@ -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)$' && \