Signed-off-by: Li Hua <lihua@email.com>
This commit is contained in:
Li Hua 2024-08-19 22:46:46 +08:00
parent 5d9bcc1a8b
commit 8e648c4d62
No known key found for this signature in database
GPG key ID: 5ADFEAB69DD0B560
2 changed files with 0 additions and 7 deletions

2
.github/README.tmpl vendored
View file

@ -1,2 +0,0 @@
[![CI](https://github.com/real-LiHua/bk/actions/workflows/check.yml/badge.svg)](https://github.com/real-LiHua/bk/actions/workflows/check.yml)
[![Static Badge](https://img.shields.io/badge/Normal_percentage-${count}%2F${total}-blue)](https://github.com/real-LiHua/bk/blob/main/status.csv)

5
.github/check.py vendored
View file

@ -145,8 +145,3 @@ with open("status.csv", "w") as csvfile:
total += 1 total += 1
output.append(dict(zip(fieldnames, values))) output.append(dict(zip(fieldnames, values)))
writer.writerows(sorted(output, key=lambda x: x[fieldnames[0]])) writer.writerows(sorted(output, key=lambda x: x[fieldnames[0]]))
with open(".github/README.tmpl") as template, open("README.md", "w") as readme:
readme.write(
Template(template.read()).substitute(count=str(count), total=str(total))
)