Added rebase flag to Update Theme Timestamps action (#582)

* Update `updated at` field for `39907934-59e9-4e42-89f0-a254d3c5e280 ad97bb70-0066-4e42-9b5f-173a5e42c6fc bc25808c-a012-4c0d-ad9a-aa86be616019 `

* added rebase strategy to `Update Theme Timestamps` action

* added indent for proper json formatting

* added indent for proper formatting to `Rebuild Themes` as well

* Added indent for proper formatting to `Submit Theme`

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
TheRealMG 2024-10-18 05:54:17 -05:00 committed by GitHub
parent c544ca0cef
commit 6c30ab0b6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 47 deletions

View file

@ -86,7 +86,7 @@ def main():
themes_data[theme] = theme_data
with open(THEMES_DATA_FILE, "w") as f:
json.dump(themes_data, f)
json.dump(themes_data, f, indent=4)
del themes_data
preferences_data_file = os.path.join(theme_folder, "preferences.json")

View file

@ -384,7 +384,7 @@ Just joking, you can do whatever you want. You're the boss.
download_image(image, f"themes/{theme_id}/{IMAGE_FILE}")
with open(f"themes/{theme_id}/theme.json", "w") as f:
json.dump(theme, f)
json.dump(theme, f, indent=4)
print(f"Theme submitted with ID: {theme_id}")
for key, value in theme.items():

View file

@ -41,7 +41,7 @@ def update_theme_date(theme_path):
# Write the changes back to theme.json
with open(theme_file, "w") as f:
json.dump(theme_data, f)
json.dump(theme_data, f, indent=4)
print(f"Updated `updatedAt` for {theme_path} to {theme_data['updatedAt']}")