Fetch depth fix

This commit is contained in:
x032205
2025-05-31 00:54:23 -04:00
parent 082d6c44c4
commit f3a04f1a2f

View File

@@ -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