Skip to content

Commit 4672d88

Browse files
fix(ci): fetch full history in E2E checkout for TIA selector
The "Select E2E tests" step runs `git diff --name-only origin/${BASE_REF}...HEAD` inside the sandbox copy of the workspace. Without fetch-depth: 0 the e2e job's checkout only resolves a single commit, so origin/main is missing and the diff aborts with "ambiguous argument 'origin/main...HEAD': unknown revision". Mirror the Build job's setup and request full history. Signed-off-by: Myasnikov Daniil <[email protected]>
1 parent 77f80b5 commit 4672d88

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/pull-requests.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,12 @@ jobs:
177177
owner: cozystack
178178

179179
# ▸ Checkout and prepare the codebase
180+
# fetch-depth: 0 is required by the "Select E2E tests" step so that
181+
# `git diff origin/${BASE_REF}...HEAD` can resolve the base ref.
180182
- name: Checkout code
181183
uses: actions/checkout@v4
184+
with:
185+
fetch-depth: 0
182186

183187
# ▸ Regular PR path – download artefacts produced by the *build* job
184188
- name: "Download Talos image (regular PR)"

0 commit comments

Comments
 (0)