diff options
| author | copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> | 2026-05-10 22:14:19 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-10 22:14:19 +0000 |
| commit | aba878f54096704710a3899ffca9737d5a992a0c (patch) | |
| tree | 3c704ac6cd7bad51fb5f04cc2a1794dd31981bc0 | |
| parent | f6ef27d087a4cae08b122e73b7c46771d1a6764b (diff) | |
| download | vyos-documentation-aba878f54096704710a3899ffca9737d5a992a0c.tar.gz vyos-documentation-aba878f54096704710a3899ffca9737d5a992a0c.zip | |
ci(ai-validation): fetch base branch ref unambiguously
Agent-Logs-Url: https://github.com/vyos/vyos-documentation/sessions/b505c475-0c95-470c-bb8e-3391741f8e4e
Co-authored-by: andamasov <12631358+andamasov@users.noreply.github.com>
| -rw-r--r-- | .github/workflows/ai-validation.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/ai-validation.yml b/.github/workflows/ai-validation.yml index 738faf60..c6d7c664 100644 --- a/.github/workflows/ai-validation.yml +++ b/.github/workflows/ai-validation.yml @@ -69,8 +69,10 @@ jobs: id: changes run: | set -euo pipefail - git fetch --depth=1 origin "${{ github.event.pull_request.base.ref }}" - BASE="origin/${{ github.event.pull_request.base.ref }}" + # Fetch the base branch explicitly by refname to avoid ambiguity with + # same-named tags (e.g., a `rolling` tag), then diff against FETCH_HEAD. + git fetch --no-tags --depth=1 origin "refs/heads/${{ github.event.pull_request.base.ref }}" + BASE="FETCH_HEAD" # --diff-filter=ACMRT excludes Deleted entries so the bundling # loop below (`git show HEAD:<path>`) doesn't try to extract # blobs for files that no longer exist in the merge ref. |
