Commit d41e83e9 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Don't execute hooks if ci was supposed to be skipped

And we should preserve the return value
parent b831ef71
......@@ -237,8 +237,9 @@ module Ci
self.started_at = statuses.started_at
self.finished_at = statuses.finished_at
self.duration = statuses.latest.duration
save
execute_hooks
saved = save
execute_hooks if saved && !skip_ci?
saved
end
def execute_hooks
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment