feat(ghactions): Try GitHub actions

This commit is contained in:
WalkxCode 2022-04-22 13:32:36 +02:00
parent 0ef388cc55
commit 562ddc60e2
No known key found for this signature in database
GPG Key ID: A4728B5A76CE4B6E
2 changed files with 33 additions and 1 deletions

32
.github/workflows/update_readme.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Update Readme
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.9"
architecture: "x64"
- name: Update Readme
run: |-
python ./scripts/generate_readme.py
cat README.md
- name: Load to GitHub
run: |-
git diff
git config --global user.email "readmebot@walkx.org"
git config --global user.name "Readme Bot"
git add -A
git commit -m "✨ feat(add): Update Readme" || exit 0
git push

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
imgs = sorted(Path("../png").glob("*.png"))
img_tags = [generate_img_tag(x) for x in imgs]
with open("README.md", "wt", encoding="UTF-8") as f:
with open("../README.md", "wt", encoding="UTF-8") as f:
f.write("<p align = \"center\" >\n")
f.write(" <h3 align = \"center\" > Dashboard Icons </h3>\n")
f.write("\n")