diff --git a/.github/workflows/detect-pr-pipeline.yaml b/.github/workflows/detect-pr-pipeline.yaml index 0c343bb..15a740e 100644 --- a/.github/workflows/detect-pr-pipeline.yaml +++ b/.github/workflows/detect-pr-pipeline.yaml @@ -53,7 +53,7 @@ jobs: mkdir -p /tmp/pr-detect git fetch origin "$BASE_REF" --depth=1 2>/dev/null git fetch origin +refs/pull/*/head:refs/pull/*/head --depth=1 2>/dev/null - git diff --name-only "origin/$BASE_REF"...HEAD > /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