Skip to content

Commit f04575c

Browse files
committed
Fix publish workflow
1 parent 06a01f9 commit f04575c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
4040
- name: Make sure pyproject.toml version matches git version
4141
run: |
42-
git_version=$(git describe)
42+
git_version=$(git describe --tags)
4343
pyproject_version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
4444
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)"
4747
echo "You most likely forgot to update pyproject.toml when publishing the release tag"
4848
echo "You can fix this by updating the pyproject version and overwriting the git tag"
4949
exit 1

0 commit comments

Comments
 (0)