Commit e75867dc authored by Matija Čupić's avatar Matija Čupić

Extract trigger branch into variable

parent 3e0d3b11
......@@ -115,10 +115,11 @@ module EE
end
def target_ref
return unless options&.dig(:trigger, :branch)
branch = options&.dig(:trigger, :branch)
return unless branch
scoped_variables.to_runner_variables.yield_self do |all_variables|
::ExpandVariables.expand(options&.dig(:trigger, :branch), all_variables)
::ExpandVariables.expand(branch, all_variables)
end
end
......
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