aboutsummaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/post-receive-ci8
1 files changed, 8 insertions, 0 deletions
diff --git a/hooks/post-receive-ci b/hooks/post-receive-ci
new file mode 100755
index 0000000..32459f9
--- /dev/null
+++ b/hooks/post-receive-ci
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+CI_URL="https://ci.cynthia.re/webhook/src"
+
+repo_name=$(basename $(pwd))
+echo $repo_name
+
+curl -X POST -H "X-CynCI-Token: $CYNCI_TOKEN" --data "{\"repo\":\"${repo_name}\"}" $CI_URL \ No newline at end of file