ci: test the D3D12 scope with a here-string, not a pipe (review)

Under pipefail a grep that matched early could make printf fail with SIGPIPE on a large file list, which the
negated test read as no D3D12 change and skipped the build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
t
2026-12-03 11:08:15 +01:00
parent 68145772e1
commit ac5af89b6e

View File

@ -59,7 +59,8 @@ jobs:
git fetch --no-tags --depth=1 origin "${GROUP_BASE}" || base=""
fi
if [ -n "$base" ] && files=$(git diff --name-only --no-renames "$base" "$GITHUB_SHA" --); then
if ! printf '%s\n' "$files" | grep -qE '^(d3d12/|mods/|\.github/workflows/d3d12\.yml$)'; then
# A here-string, not a pipe: under pipefail an early match could kill the writer and skip the build.
if ! grep -qE '^(d3d12/|mods/|\.github/workflows/d3d12\.yml$)' <<<"$files"; then
touched=false
fi
fi