ammaraskar / sphinx-action

Github action that builds docs using sphinx and places errors inline
Apache License 2.0
189 stars 114 forks source link

problem with `git describe --tags --abbrev=0` #50

Closed iltommi closed 1 year ago

iltommi commented 1 year ago

In my sphinx conf.py I call this command git describe --tags --abbrev=0 to get the current tag (that represents the version of the sphinx doc).

but I get an error: fatal: No names found, cannot describe anything.

how to I clone the repo? Is there a way to clone it with all the tags? thanks

iltommi commented 1 year ago

I see that upon clone shpinx action does a git checkout --progress --force XXXXXXXXXXXXXXX

is it possible to avoid this?

iltommi commented 1 year ago

Sorry my mistake. I needed just to fetch-depth: 0