File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 14
14
steps :
15
15
- name : Checkout repository
16
16
uses : actions/checkout@v3
17
+ with :
18
+ token : ${{ secrets.GH_TOKEN }}
17
19
18
20
- name : Set up Python
19
21
uses : actions/setup-python@v4
25
27
pip install uv
26
28
make install
27
29
30
+ - name : Update version in pyproject.toml
31
+ id : update_version
32
+ run : |
33
+ TAG_NAME=${GITHUB_REF#refs/tags/}
34
+ sed -i "s/^version = \".*\"/version = \"${TAG_NAME#v}\"/" pyproject.toml
35
+
36
+ - name : Commit version update
37
+ run : |
38
+ git config --global user.name "github-actions[bot]"
39
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
40
+ git add pyproject.toml
41
+ git commit -m "Update version to ${GITHUB_REF#refs/tags/}"
42
+ git push origin HEAD:${GITHUB_REF#refs/tags/} --force
43
+
28
44
- name : Build package
29
45
run : make build
30
46
You can’t perform that action at this time.
0 commit comments