From ee1b2d40ca48ddd2d27f192514d3d810c9ac5571 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 20 Jan 2025 08:50:00 +1100 Subject: [PATCH] github: make it clearer which image contains RIFF metadata ... if it exists it would be nice to know in what! --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 695dc5d0ed..1c068ca2d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,12 @@ jobs: ./Sphinxsetup.sh - name: Check image formats run: | - find ./images/ -exec file {} + | grep RIFF -vzq + for i in $(find ./images/); do + if file "$i" | grep RIFF; then + echo "$i contains RIFF metadata; process file to remove" + exit 1 + fi + done - name: Check python3 flake8 formatting run : | set -eux -o pipefail