File tree Expand file tree Collapse file tree 2 files changed +1
-46
lines changed
Expand file tree Collapse file tree 2 files changed +1
-46
lines changed Original file line number Diff line number Diff line change 99 - ' *released'
1010 workflow_dispatch :
1111
12-
1312jobs :
14-
15- update-version :
16- runs-on : ubuntu-latest
17- steps :
18- - name : Checkout repository
19- uses : actions/checkout@v4
20- with :
21- ref : main
22- fetch-depth : 0
23-
24- - name : Set up Python
25- uses : actions/setup-python@v5
26- with :
27- python-version : " 3.10"
28-
29- - name : Update version.py
30- run : |
31- python update_version.py
32-
33- - name : Verify version.py
34- run : |
35- ls -l magic_doc/libs/version.py
36- cat magic_doc/libs/version.py
37-
38- - name : Commit changes
39- run : |
40- git config --local user.email "[email protected] " 41- git config --local user.name "myhloli"
42- git add magic_doc/libs/version.py
43- if git diff-index --quiet HEAD; then
44- echo "No changes to commit"
45- else
46- git commit -m "Update version.py with new version"
47- fi
48- id : commit_changes
49-
50- - name : Push changes
51- if : steps.commit_changes.outcome == 'success'
52- env :
53- GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
54- run : |
55- git push origin HEAD:main
56-
5713 build :
58- needs : [ update-version ]
5914 runs-on : ubuntu-latest
6015 strategy :
6116 fail-fast : false
Original file line number Diff line number Diff line change 1- __version__ = "0.1.38 "
1+ __version__ = "0.1.41 "
You can’t perform that action at this time.
0 commit comments