fix: ignore optional headers in pr template check (#26910)

This commit is contained in:
bo0tzz 2026-03-13 23:55:00 +01:00 committed by GitHub
parent 2c6d4f3fe1
commit 0581b49750
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ jobs:
OK=true
while IFS= read -r header; do
printf '%s\n' "$BODY" | grep -qF "$header" || OK=false
done < <(grep "^## " .github/pull_request_template.md)
done < <(sed '/<!--/,/-->/d' .github/pull_request_template.md | grep "^## ")
echo "uses_template=$OK" >> "$GITHUB_OUTPUT"
act: