mirror of
https://github.com/walkxhub/dashboard-icons.git
synced 2025-12-08 06:02:45 -05:00
✨ feat(ghactions): Try GitHub actions
This commit is contained in:
parent
0ef388cc55
commit
562ddc60e2
32
.github/workflows/update_readme.yml
vendored
Normal file
32
.github/workflows/update_readme.yml
vendored
Normal 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
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ if __name__ == "__main__":
|
|||||||
imgs = sorted(Path("../png").glob("*.png"))
|
imgs = sorted(Path("../png").glob("*.png"))
|
||||||
img_tags = [generate_img_tag(x) for x in imgs]
|
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("<p align = \"center\" >\n")
|
||||||
f.write(" <h3 align = \"center\" > Dashboard Icons </h3>\n")
|
f.write(" <h3 align = \"center\" > Dashboard Icons </h3>\n")
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user