自动化fix

This commit is contained in:
tsxc 2025-01-26 18:47:16 +08:00
parent 464297f54d
commit a1b9a2b5de
3 changed files with 12 additions and 7 deletions

View File

@ -6,9 +6,7 @@ on:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
@ -26,3 +24,8 @@ jobs:
- name: run shell script
run: |
bash ./run.sh
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN }}

7
run.sh
View File

@ -1,4 +1,9 @@
git clone https://github.com/Light-Beacon/HomepageBuilder
pip install ./HomepageBuilder
pip install -r ./requirements.txt
python ./script.py
python ./script.py
git config user.email "tsxc_personal@163.com"
git config user.name "星澜曦光"
git add output.xaml -f
git commit -m "更新output.xaml"

View File

@ -61,7 +61,4 @@ for child in root:
order+=1
os.system("builder build")
os.system("git add output.xaml -f")
os.system("git commit -m \"更新output.xaml\"")
os.system("git push")
os.system("builder build")