chanage update version logic

This commit is contained in:
赵小蒙
2024-06-04 11:33:57 +08:00
parent 1de37e4c65
commit 07f6c49707
3 changed files with 53 additions and 23 deletions
+29
View File
@@ -11,6 +11,35 @@ on:
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Update version.py
run: |
python update_version.py
- name: Commit changes
run: |
git config --local user.email "moe@myhloli.com"
git config --local user.name "myhloli"
git add version.py
git commit -m "Update version.py with new version"
- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
git push
build:
runs-on: ubuntu-latest