mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2025-01-09 16:49:57 +08:00
6b07040ad7
* move e2e test in regular build * write to summary
10 lines
393 B
Bash
Executable file
10 lines
393 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
echo "## Pod adguardhome-sync logs" >> $GITHUB_STEP_SUMMARY
|
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
|
kubectl logs adguardhome-sync >> $GITHUB_STEP_SUMMARY
|
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
|
ERRORS=$(kubectl logs adguardhome-sync | grep Error | wc -l)
|
|
echo "Found ${ERRORS} error(s) in adguardhome-sync log"; >> $GITHUB_STEP_SUMMARY
|
|
if [[ "${ERRORS}" != "0" ]]; then exit 1; fi
|