summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-11 11:09:32 +0300
committerGitHub <noreply@github.com>2026-05-11 11:09:32 +0300
commitc6f085d52fd44122e1f412b6d75ba9ad62a38dc9 (patch)
tree87ca165317a215aec27e69309825acfec2052e8a /.github
parenta8328e682b1a26e0bc37ae2ff132fa245429e22c (diff)
parent93008a777551f37fe9e07a3902fd76e29ec84e35 (diff)
downloadvyos-documentation-c6f085d52fd44122e1f412b6d75ba9ad62a38dc9.tar.gz
vyos-documentation-c6f085d52fd44122e1f412b6d75ba9ad62a38dc9.zip
Merge pull request #1978 from vyos/yuriy/ai-validation-pathspec-glob-magic
ci(ai-validation): pathspec :(glob) magic — top-level docs/*.md were silently bypassed
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ai-validation.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/ai-validation.yml b/.github/workflows/ai-validation.yml
index b4736fe1..b21d2320 100644
--- a/.github/workflows/ai-validation.yml
+++ b/.github/workflows/ai-validation.yml
@@ -78,8 +78,8 @@ jobs:
# blobs for files that no longer exist in the merge ref.
# Deletions still appear in diff-md.patch (full diff) but not
# in changed-md.txt (which drives the bundling step).
- git diff "$BASE...HEAD" --name-only --diff-filter=ACMRT -z -- 'docs/**/*.md' > changed-md.z
- git diff "$BASE...HEAD" --name-only --diff-filter=ACMRT -z -- 'docs/**/*.rst' > changed-rst.z
+ git diff "$BASE...HEAD" --name-only --diff-filter=ACMRT -z -- ':(glob)docs/**/*.md' > changed-md.z
+ git diff "$BASE...HEAD" --name-only --diff-filter=ACMRT -z -- ':(glob)docs/**/*.rst' > changed-rst.z
# Reject paths containing line-disrupting control bytes (LF, CR,
# other 0x01-0x1F + 0x7F) before generating the newline-delimited
# *.txt manifests. NUL itself can't appear in a git pathname
@@ -106,7 +106,7 @@ jobs:
done
tr '\0' '\n' < changed-md.z > changed-md.txt
tr '\0' '\n' < changed-rst.z > changed-rst.txt
- git diff "$BASE...HEAD" -- 'docs/**/*.md' > diff-md.patch
+ git diff "$BASE...HEAD" -- ':(glob)docs/**/*.md' > diff-md.patch
# Bundle .md files via git's blob store (NOT the filesystem).
# The fork's merge ref can contain symlinks (mode 120000) committed
# to docs/**/*.md that resolve to absolute paths on the runner.