diff --git a/.github/workflows/s3-regression-tests.yml b/.github/workflows/s3-regression-tests.yml index 9b5f4fa047c..3f8a997cb05 100644 --- a/.github/workflows/s3-regression-tests.yml +++ b/.github/workflows/s3-regression-tests.yml @@ -22,8 +22,8 @@ jobs: - name: Check for changes related to s3 id: check-changes run: | - git fetch origin ${{ github.base_ref }} --depth 1 - CHANGED_FILES=$(git diff remotes/origin/${{ github.base_ref }} --name-only) + git fetch origin ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }} --depth 1 + CHANGED_FILES=$(git diff remotes/origin/${{ github.base_ref || github.event.merge_group.base_ref || github.ref }} --name-only) if echo "$CHANGED_FILES" | grep -q -E '^core/|^services/s3/|^services-custom/s3-transfer-manager/|^http-client-spi/|^http-clients/'; then echo "Detected changes in S3, HTTP client, or core modules" echo "has_s3_related_changes=true" >> $GITHUB_OUTPUT