summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ai-validation.yml6
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.