Added tags, createdAt, updatedAt properties (#561)

* add new properties on submit theme

* New GitHub Action for updating `updatedAt`

* change rebuild_themes.py to update tags for color themes

* Adding GitHub Action for updating all theme.json files (temporary)

* Applying corrected themes.json file

* fix: forgot to commit changes

* Update theme.json metadata

* Deleting actions not needed for merge

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
TheRealMG 2024-10-12 02:23:29 -05:00 committed by GitHub
parent 1d26f953a6
commit ab50f51b95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
63 changed files with 1240 additions and 64 deletions

View file

@ -2,6 +2,7 @@ import os
import re
import argparse
import json
import time
import uuid
import sys
import requests
@ -352,6 +353,9 @@ Just joking, you can do whatever you want. You're the boss.
"image": get_static_asset(theme_id, IMAGE_FILE),
"author": author,
"version": "1.0.0",
"tags": [],
"createdAt": time.strftime("%Y-%m-%d"),
"updatedAt": time.strftime("%Y-%m-%d"),
}
os.makedirs(f"themes/{theme_id}")
@ -388,4 +392,4 @@ Just joking, you can do whatever you want. You're the boss.
if __name__ == "__main__":
main()
main()