aboutsummaryrefslogtreecommitdiff
path: root/after
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2021-09-14 13:22:32 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2021-09-14 13:22:32 +0900
commita2345f8b08ccf6d76038545fde207ab7e2c115f8 (patch)
tree9bc3d3ced0ac2ba816afc0a9024343e8579c0527 /after
parent6037427388adda47b3cae210324ce7340a97065d (diff)
Add after job.
Diffstat (limited to 'after')
-rwxr-xr-xafter12
1 files changed, 12 insertions, 0 deletions
diff --git a/after b/after
new file mode 100755
index 0000000..363d9e9
--- /dev/null
+++ b/after
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -eu
+
+message="$JOB ($RUN): $RESULT
+https://ci.tojo.tokyo/jobs/$JOB/$RUN"
+
+if [ "$RESULT" != "$LAST_RESULT" ]; then
+ message="@tojoqk@mastodon.tojo.tokyo
+$message"
+fi
+
+toot post -v unlisted "$message"