diff --git a/.github/workflows/monorepo_tests.yaml b/.github/workflows/monorepo_tests.yaml index ac3eb189..54646a93 100644 --- a/.github/workflows/monorepo_tests.yaml +++ b/.github/workflows/monorepo_tests.yaml @@ -15,7 +15,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 2 + filter: tree:0 + fetch-depth: 0 - id: fetch-latest-main run: git fetch --depth=1 origin main:main @@ -36,7 +37,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 1 + filter: tree:0 + fetch-depth: 0 - name: update pip run: python -m pip install --upgrade pip diff --git a/scripts/affected_services.py b/scripts/affected_services.py index 1384778b..3c0716ad 100755 --- a/scripts/affected_services.py +++ b/scripts/affected_services.py @@ -70,7 +70,7 @@ def files_in_diff(full: bool, target: str) -> list[str]: """List files in diff.""" # Command to list names of changed files change_range = f"{target}...HEAD" if full else "HEAD^1..HEAD" - command = f"git diff --merge-base --name-only {change_range}" + command = f"git diff --name-only {change_range}" # Execute the command and capture the output result = subprocess.run(