diff options
| author | Cynthia Revström <me@cynthia.re> | 2020-04-23 13:12:22 +0200 |
|---|---|---|
| committer | Cynthia Revström <me@cynthia.re> | 2020-04-23 13:12:22 +0200 |
| commit | 7fe5c5b3049ef64d1abbf0ed5080b249e3e062ce (patch) | |
| tree | c166b5d9dbfe7f992e273fa7c3d4c05e401f714b | |
| parent | b93e14bfd077c8da8ff67ae1b64894e78e56b0e5 (diff) | |
add post-receive-ci hook
| -rwxr-xr-x | hooks/post-receive-ci | 8 |
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 |
