Send mail for skipped runner builds
This commit is contained in:
@@ -16,12 +16,6 @@ if [[ "$notify" == "error" && $EXIT_CODE -ne 0 ]]; then
|
|||||||
exit $EXIT_CODE
|
exit $EXIT_CODE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if echo "$OUTPUT" | grep -q '^SKIP:'; then
|
|
||||||
if [[ "$notify" == "error" || "$notify" == "success" ]]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$notify" == "success" && $EXIT_CODE -eq 0 ]]; then
|
if [[ "$notify" == "success" && $EXIT_CODE -eq 0 ]]; then
|
||||||
SUBJECT="[Gitea Runner Build] Success"
|
SUBJECT="[Gitea Runner Build] Success"
|
||||||
echo "$OUTPUT" | mail -s "$SUBJECT" "$email"
|
echo "$OUTPUT" | mail -s "$SUBJECT" "$email"
|
||||||
|
|||||||
Reference in New Issue
Block a user