From 7fe5c5b3049ef64d1abbf0ed5080b249e3e062ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cynthia=20Revstr=C3=B6m?= Date: Thu, 23 Apr 2020 13:12:22 +0200 Subject: add post-receive-ci hook --- hooks/post-receive-ci | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 hooks/post-receive-ci (limited to 'hooks') 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 -- cgit v1.2.3