From 1c4822dca5c53f46d5a37300f78e4ad62f1b3595 Mon Sep 17 00:00:00 2001 From: Danilo Pianini Date: Tue, 31 Jan 2023 23:15:47 +0100 Subject: [PATCH] ci: improve failure reporting --- .github/workflows/build-and-deploy.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 9cf9b625..d44d9723 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -165,11 +165,15 @@ jobs: [[ -e "$IDS" ]] || ( echo "No $IDS" && exit 2 ) - [[ "$(wc -l build/staging-repo-ids.properties)" =~ "^1 .*" ]] || ( - echo "$IDS has too many lines (1 expected):\n$(cat "$IDS")" && exit 3 + [[ "$(wc -l "$IDS")" =~ "^1 .*" ]] || ( + echo "$IDS has too many lines (1 expected): $(wc -l "$IDS")" && + cat "$IDS" && + exit 3 ) [[ "$(cat build/staging-repo-ids.properties)" =~ '^MavenCentral=[a-zA-Z]+-[0-9]+$' ]] || ( - echo "$IDS has not the expected content:\n$(cat "$IDS")" && exit 4 + echo "$IDS has not the expected content" && + cat "$IDS" && + exit 4 ) working-directory: kt-mp-multi-stage should-run-codecov: false