Skip to content

Commit ff70752

Browse files
authored
Update convert_to_html_tables.py
update script to convert the logs into proper html file.
1 parent a1933fe commit ff70752

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/scripts/convert_to_html_tables.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ def main():
124124
demo_path_output = f'<a href="{demo_path}" title="view the result of {title}">/{REPO_NAME}/{title}/</a>'
125125
if title == 'root' or title == '{init}':
126126
demo_path_output = f'<a href="{demo_path}" title="view the result of {title}">/{REPO_NAME}/</a>'
127-
127+
elif title == '{workflows}':
128+
demo_path_output = f'<a href="{demo_path}" title="view the result of {title}">/{REPO_NAME}/.github/workflows</a>'
129+
elif title == '{scripts}':
130+
demo_path_output = f'<a href="{demo_path}" title="view the result of {title}">/{REPO_NAME}/.github/scripts</a>'
131+
elif title == '{others}':
132+
demo_path_output = f'<a href="{demo_path}" title="view the result of {title}">/{REPO_NAME}/.github</a>'
128133

129134
# Appending all data together
130135
updated_lines.append('\t<tr align="center">\n')
@@ -149,4 +154,4 @@ def main():
149154

150155

151156
if __name__ == '__main__':
152-
main()
157+
main()

0 commit comments

Comments
 (0)