summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@nullring.xyz>2026-03-09 19:22:02 -0700
committerPreston Pan <ret2pop@nullring.xyz>2026-03-09 19:22:02 -0700
commitf9b74bcf268c66c96c052cafe8d3ba5ef54f48f6 (patch)
tree646d128bd75d364ce4f35b3996cb3c08bcc9dd59 /flake.nix
parentd2431e754359c931e9a43cc0bc2c7c5bea78b3bb (diff)
add notification in case of fail
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index cb4ee4c..8d66f68 100644
--- a/flake.nix
+++ b/flake.nix
@@ -88,6 +88,8 @@ if [ -d "$RESULT_PATH" ]; then
curl -H "Priority: max" -u "${internetName}:$(grep ADMIN_PASSWORD "${secretsPath}/${ntfyFile}" | cut -d "\"" -f 2)" -d "CI checks done!" https://ntfy.ret2pop.net/ci-build
else
echo "Website build failed, skipping lychee."
+
+ curl -H "Priority: max" -u "${internetName}:$(grep ADMIN_PASSWORD "${secretsPath}/${ntfyFile}" | cut -d "\"" -f 2)" -d "CI checks failed!" https://ntfy.ret2pop.net/ci-build
exit 1
fi
''}";