File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ jobs:
39
39
40
40
- name : Make sure pyproject.toml version matches git version
41
41
run : |
42
- git_version=$(git describe)
42
+ git_version=$(git describe --tags )
43
43
pyproject_version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
44
44
45
- if [ "$git_verson " != "$pyproject_version" ]; then
46
- echo "The version specified in pyproject.toml ($pyproject_version) doesn't match the git version ($git_verson )"
45
+ if [ "$git_version " != "v $pyproject_version" ]; then
46
+ echo "The version specified in pyproject.toml (v $pyproject_version) doesn't match the git version ($git_version )"
47
47
echo "You most likely forgot to update pyproject.toml when publishing the release tag"
48
48
echo "You can fix this by updating the pyproject version and overwriting the git tag"
49
49
exit 1
You can’t perform that action at this time.
0 commit comments