File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 23
23
steps :
24
24
- name : Checkout repository
25
25
uses : actions/checkout@v4
26
+ with :
27
+ # Fetch the entire git history (all branches + tags)
28
+ # We do this because the docs use git describe, which requires having all
29
+ # the annotated tags fetched
30
+ fetch-depth : 0
26
31
27
32
- name : Setup uv
28
33
uses : astral-sh/setup-uv@v5
42
47
git_version=$(git describe)
43
48
pyproject_version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
44
49
45
- if [ "$git_verson " != "$pyproject_version" ]; then
50
+ if [ "$git_version " != "$pyproject_version" ]; then
46
51
echo "The version specified in pyproject.toml ($pyproject_version) doesn't match the git version ($git_verson)"
47
52
echo "You most likely forgot to update pyproject.toml when publishing the release tag"
48
53
echo "You can fix this by updating the pyproject version and overwriting the git tag"
You can’t perform that action at this time.
0 commit comments