File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 4141 # Checkout the specific tag
4242 ref : ${{ steps.get_tag.outputs.tag }}
4343
44- - run : git tag
45-
4644 - name : Setup uv
4745 uses : astral-sh/setup-uv@v6
4846 with :
5957 - name : Make sure pyproject.toml version matches git version
6058 run : |
6159 git_version=$(git describe)
60+ git_version="${git_version:1}" # first character is always `v`
6261 pyproject_version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
6362
64- if [ "$git_verson " != "$pyproject_version" ]; then
63+ if [ "$git_version " != "$pyproject_version" ]; then
6564 echo "The version specified in pyproject.toml ($pyproject_version) doesn't match the git version ($git_verson)"
6665 echo "You most likely forgot to update pyproject.toml when publishing the release tag"
6766 echo "You can fix this by updating the pyproject version and overwriting the git tag"
8988 id-token : write
9089
9190 steps :
92- - run : exit 1
9391 - name : Download the distribution files from PR artifact
9492 uses : actions/download-artifact@v4
9593 with :
You can’t perform that action at this time.
0 commit comments