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