blob: e13dfb0569daba4dc20fe70f0d40f89c0a636e02 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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
|