aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/mail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/mail.sh')
-rwxr-xr-xscripts/ci/mail.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/ci/mail.sh b/scripts/ci/mail.sh
index 2796606..7058233 100755
--- a/scripts/ci/mail.sh
+++ b/scripts/ci/mail.sh
@@ -37,6 +37,13 @@ EOF
)
tail -n +1 ./logs/*.txt > "${ATTACHMENT_PATH}"
+
+[[ "${USER}" = "build" ]] || {
+ echo "Not running on CI."
+ echo "Early exit on sending email logs."
+ exit
+}
+
gpg --always-trust \
-r "${GPG_TO}" \
-e "${ATTACHMENT_PATH}"