Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlyobvious committed Sep 9, 2023
1 parent 7f52afb commit 27bbb75
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions support/ci/generate
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,11 @@ class CI
}
end

def assets(name, working_directory: nil, template: "assets.yaml.erb")
def assets(name, template: "assets.yaml.erb")
{
name: "#{name}_assets",
working_directory: working_directory || name,
working_directory: name,
matrix: nil,
template: template
}
end
Expand Down Expand Up @@ -388,11 +389,11 @@ class CI
).result_with_hash(
name: name,
working_directory: gem.fetch(:working_directory),
matrix: as_formatted_yaml(gem[:matrix], indent: 10),
matrix: as_formatted_yaml(gem.fetch(:matrix), indent: 10),
env:
as_formatted_yaml(
{ "WORKING_DIRECTORY" => gem.fetch(:working_directory) }.merge(
matrix_env_vars(gem[:matrix])
matrix_env_vars(gem.fetch(:matrix))
),
indent: 6
)
Expand Down

0 comments on commit 27bbb75

Please sign in to comment.