From 6beb0c2ea79f02fa24242a7a64212ffcbbfb9000 Mon Sep 17 00:00:00 2001 From: Christopher Patton Date: Tue, 7 Jan 2025 16:00:42 -0800 Subject: [PATCH] Ignore a SVG-related warning during document linting Co-authored-by: David Cook --- .github/workflows/lint.yml | 2 +- .github/workflows/make-with-lints.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/make-with-lints.sh diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6a4ea419..087083d9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,4 +19,4 @@ jobs: - name: "Check for warnings emitted by xml2rfc" run: | - bash -c -o pipefail 'make |& (! grep -E "Warning|Error")' + bash -c -o pipefail ./github/workflows/make-with-lints.sh diff --git a/.github/workflows/make-with-lints.sh b/.github/workflows/make-with-lints.sh new file mode 100644 index 00000000..7171c717 --- /dev/null +++ b/.github/workflows/make-with-lints.sh @@ -0,0 +1,2 @@ +make |& (! grep -E "Warning|Error") | \ + (! grep -v 'Warning: Found SVG with width or height specified, which will make the artwork not scale. Specify a viewBox only to let the artwork scale.')