From f3a04f1a2f7845db0de21e9fd2625f8f01748ae9 Mon Sep 17 00:00:00 2001 From: x032205 Date: Sat, 31 May 2025 00:54:23 -0400 Subject: [PATCH] Fetch depth fix --- .github/workflows/check-non-re2-regex.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-non-re2-regex.yml b/.github/workflows/check-non-re2-regex.yml index e9d69657b..7b9059a04 100644 --- a/.github/workflows/check-non-re2-regex.yml +++ b/.github/workflows/check-non-re2-regex.yml @@ -10,11 +10,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Get diff of backend/* run: | echo "Fetching base ref: ${{ github.base_ref }}" - git fetch origin ${{ github.base_ref }} echo "Generating diff for backend/ directory against origin/${{ github.base_ref }}" git diff --unified=0 "origin/${{ github.base_ref }}"...HEAD -- backend/ > diff.txt