From 5c04e90d6e6d892d147fe3e72f6fdbbefd4b87e2 Mon Sep 17 00:00:00 2001 From: Carsten Lenz Date: Wed, 23 Oct 2024 14:11:45 +0200 Subject: [PATCH] chore: set error in code tags, fix var --- scripts/failure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/failure.sh b/scripts/failure.sh index d1e3a24..c40e7f9 100755 --- a/scripts/failure.sh +++ b/scripts/failure.sh @@ -5,5 +5,5 @@ echo "This script will fail" images=("alpine" "gibtsnicht:1.23.34") for image in "${images[@]}"; do - error=$(docker pull "$image" 2>&1) || echo -e "Failed to pull $image\n\nDetailed error message:\n```\n"$error"\n```" >> "$GITHUB_STEP_SUMMARY" + error=$(docker pull "$image" 2>&1) || echo -e "Failed to pull $image\n\nDetailed error message:\n`${error}`" >> "$GITHUB_STEP_SUMMARY" done