Don't execute hooks if ci was supposed to be skipped
And we should preserve the return value
This commit is contained in:
parent
b831ef716b
commit
d41e83e91a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue