From 0d56f0af84d0943839ac4aed96b392216ec5616f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 19 Jul 2026 15:53:19 +0100 Subject: [PATCH] fix(ci): fetch full history in details-check so base ref diff works The create-matrix job runs 'git diff origin/${base_ref}...HEAD' to detect which servers a PR touches, but actions/checkout defaults to a shallow single-branch fetch, so origin/develop does not exist in the runner and the diff fails with 'ambiguous argument' on every PR that reaches this job. Set fetch-depth: 0 so the base ref is available. --- .github/workflows/details-check.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/details-check.yml b/.github/workflows/details-check.yml index d4f7f644f..bed3a41ad 100644 --- a/.github/workflows/details-check.yml +++ b/.github/workflows/details-check.yml @@ -27,6 +27,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 + with: + # Full history so the base branch ref is available for the + # `git diff origin/...HEAD` comparison below (a shallow + # checkout has no origin/ and the diff fails). + fetch-depth: 0 - name: Detect targeted servers (PR only) id: targeted