module Actions module Middleware class ExecuteIfContentsChanged < Dynflow::Middleware def run(*args) pass(*args) if execute? end def finalize(*args) pass(*args) if execute? end private def execute? if action.input.keys.include?('contents_changed') && !action.input['contents_changed'] self.action.output[:post_sync_skipped] = true false else true end end end end end