From 5f1592fa7a95dd2c9ae2d71e63534880036b4187 Mon Sep 17 00:00:00 2001 From: wyatt-avilla Date: Sun, 22 Oct 2023 12:32:50 -0700 Subject: [PATCH] changed test status messages --- .github/workflows/testPatches.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testPatches.sh b/.github/workflows/testPatches.sh index 87890ec..b3f8911 100755 --- a/.github/workflows/testPatches.sh +++ b/.github/workflows/testPatches.sh @@ -24,17 +24,18 @@ for file in "$wikiDirectory"/*.md; do extractedURL=${BASH_REMATCH[0]} patchAccessResult=$(curl -s -w "%{http_code}" -o /dev/null "$extractedURL") if [ "$patchAccessResult" -ne 200 ]; then + echo "⚠️ - $extractedURL" update_line "$line" "inaccessible" continue fi - git -C $dwlSrcDirectory apply --check <(curl -s "$extractedURL") > /dev/null 2>&1 + git -C "$dwlSrcDirectory" apply --check <(curl -s "$extractedURL") > /dev/null 2>&1 patchApplicationExitCode=$? if [ $patchApplicationExitCode -eq 0 ]; then - printf "\e[32m[PASS]\e[0m %-40s\n" "$extractedURL" + echo "✅ - $extractedURL" update_line "$line" "pass" else - printf "\e[31m[FAIL]\e[0m %-40s\n" "$extractedURL" + echo "❌ - $extractedURL" update_line "$line" "fail" fi