Skip to content

Commit

Permalink
ci: dont error when a single schema fails
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 4, 2023
1 parent 00dcf2b commit 708abbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/neoconf/build/schemas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ function M.update_schemas()
print(("Generating schema for %s"):format(name))

if not Util.exists(s.settings_file) then
local schema = M.get_schema(s)
Util.write_file(s.settings_file, Util.json_format(schema))
local ok, schema = pcall(M.get_schema, s)
if ok then
Util.write_file(s.settings_file, Util.json_format(schema))
end
end
end
end
Expand Down

0 comments on commit 708abbb

Please sign in to comment.