Skip to content

Commit

Permalink
ci: improve failure reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK authored Jan 31, 2023
1 parent 1e4b851 commit 1c4822d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c4822d

Please sign in to comment.