blob: 89c9537c496d8a51a92968681972f30cec62b04a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/lua
local _, updates = ...
if updates["refs/heads/master"] then
log.state("Notifying CI system, please hold...")
local code, msg, headers, body = fetch("https://ci1.liw.fi/projects/ick.liw.fi/pipelines/build/+trigger")
if code == "200" then
log.state("CI triggered")
else
log.warn("CI not triggered, received HTTP code " .. code)
end
end
|