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 1414 steps :
1515 - name : Checkout repository
1616 uses : actions/checkout@v3
17+ with :
18+ token : ${{ secrets.GH_TOKEN }}
1719
1820 - name : Set up Python
1921 uses : actions/setup-python@v4
2527 pip install uv
2628 make install
2729
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+
2844 - name : Build package
2945 run : make build
3046
You can’t perform that action at this time.
0 commit comments