mirror of
https://github.com/hacs/integration.git
synced 2025-08-16 17:12:38 +00:00
Output the current stored data in action (#4033)
* Output the current stored data in action * update snapshot * limit objective
This commit is contained in:
@ -522,6 +522,17 @@ async def generate_category_data(category: str, repository_name: str = None):
|
||||
"Validation did raise but did not exit!", category)
|
||||
sys.exit(1) # Fallback, should not be reached
|
||||
|
||||
with open(
|
||||
os.path.join(OUTPUT_DIR, category, "stored.json"),
|
||||
mode="w",
|
||||
encoding="utf-8",
|
||||
) as data_file:
|
||||
json.dump(
|
||||
stored_data,
|
||||
data_file,
|
||||
cls=JSONEncoder,
|
||||
separators=(",", ":"),
|
||||
)
|
||||
with open(
|
||||
os.path.join(OUTPUT_DIR, category, "data.json"),
|
||||
mode="w",
|
||||
|
Reference in New Issue
Block a user