From a1b9a2b5de782e83dfd4abccc8eec11e21406320 Mon Sep 17 00:00:00 2001 From: tsxc Date: Sun, 26 Jan 2025 18:47:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 7 +++++-- run.sh | 7 ++++++- script.py | 5 +---- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2052f73..dfcd5a5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/run.sh b/run.sh index 619d120..57a41e6 100644 --- a/run.sh +++ b/run.sh @@ -1,4 +1,9 @@ git clone https://github.com/Light-Beacon/HomepageBuilder pip install ./HomepageBuilder pip install -r ./requirements.txt -python ./script.py \ No newline at end of file +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" \ No newline at end of file diff --git a/script.py b/script.py index b97d34f..7f3fd4d 100644 --- a/script.py +++ b/script.py @@ -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") \ No newline at end of file +os.system("builder build") \ No newline at end of file