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

View File

@@ -29,7 +29,7 @@ jobs:
OK=true OK=true
while IFS= read -r header; do while IFS= read -r header; do
printf '%s\n' "$BODY" | grep -qF "$header" || OK=false 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" echo "uses_template=$OK" >> "$GITHUB_OUTPUT"
act: act: