Send mail for skipped runner builds

This commit is contained in:
2026-05-10 12:11:35 +02:00
parent dcf1d80270
commit 6ca99d206b
-6
View File
@@ -16,12 +16,6 @@ if [[ "$notify" == "error" && $EXIT_CODE -ne 0 ]]; then
exit $EXIT_CODE
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
SUBJECT="[Gitea Runner Build] Success"
echo "$OUTPUT" | mail -s "$SUBJECT" "$email"