From 7d162f40f04eb842d720122c5187a569534f04cc Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Fri, 4 Feb 2022 15:09:27 +0100 Subject: [PATCH] Actions: Properly fail now --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c2e5b67..a3f0e7f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,13 +23,14 @@ jobs: - name: Install Inkscape run: sudo apt install inkscape - - name: Check Viewbox parameters + - name: Check SVG validity run: | # Enables globstar to recursively go through folders shopt -s globstar errArr=() for f in ./**/*.svg do + echo "Checking '$f'" # Gets everything in between the viewBox quotes vbStr=$(cat $f) vbStr=${vbStr##*viewBox=\"} @@ -57,9 +58,8 @@ jobs: errArr+=("$f is only one line!") fi done - if [[ ${#errArr[@]} != 0 ]] ; then echo "this should get hit" ; fi - - name: Post results - run: | + + # Results if [[ ${#errArr[@]} != 0 ]] ; then for errMess in "${errArr[@]}" do