diff --git a/.github/workflows/detect-pr-pipeline.yaml b/.github/workflows/detect-pr-pipeline.yaml index 7f004e8..8cc600a 100644 --- a/.github/workflows/detect-pr-pipeline.yaml +++ b/.github/workflows/detect-pr-pipeline.yaml @@ -51,9 +51,7 @@ jobs: - name: Get changed files run: | mkdir -p /tmp/pr-detect - git fetch origin "$BASE_REF" --depth=1 2>/dev/null - git fetch origin "$HEAD_REF" --depth=1 2>/dev/null - git diff --name-only "origin/$BASE_REF" "origin/$HEAD_REF" > /tmp/pr-detect/changed_files.txt + git diff --name-only "origin/$BASE_REF" HEAD > /tmp/pr-detect/changed_files.txt echo "Files found: $(wc -l < /tmp/pr-detect/changed_files.txt)" cat /tmp/pr-detect/changed_files.txt