-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bee9db
commit be8f9cf
Showing
2 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" | ||
This script is used to generate the private HTML files in | ||
GitHub actions. The HTML files are stored in the environment. | ||
""" | ||
|
||
import os | ||
|
||
notification = os.environ["NOTIFICATION"] | ||
statistics = os.environ["STATISTICS"] | ||
support = os.environ["SUPPORT"] | ||
|
||
assert notification is not None | ||
assert statistics is not None | ||
assert support is not None | ||
|
||
print("Generating HTML files...") | ||
with open("src/views/components/notification.html", "w") as f: | ||
f.write(notification) | ||
with open("src/views/components/statistics.html", "w") as f: | ||
f.write(statistics) | ||
with open("src/views/components/support.html", "w") as f: | ||
f.write(support) | ||
print("HTML files generated.") |