Closed b-ferreira closed 2 years ago
Did you create/push a release tag as mentioned in the README - something like v0.0.0
?
Like @djschaap said, you need to have an initial tag that conforms to the pattern autotag is looking for.
You may also run into an issue with Drone only pulling a shallow clone like GHA and Azure DevOps both do. See this section in the readme for that https://github.com/pantheon-systems/autotag#error-getting-head-commit-object-does-not-exist-id-refsheadsmaster-rel_path-
Hello guys, I'm sorry for the delay.
Yes, we had the initial tags in conformation with what autotag is looking for. The issue was that I needed to fetch the tags in Drone before using autotag, as you mentioned @joemiller.
Thank you for the support guys.
Hello,
I'm trying to use
Autotag
in one of my pipelines in Drone CI.I always get the following error message:
Here's my pipeline configuration:
I'm adding
git --version
to make sure that I havegit 2.X+
available in the PATH. And I'm using the-n
option just to validate ifAutotag
is working correctly for now.Here's the output:
If I run the same command locally in the same repository it manages to compute the next tag normaly.
Is there any trick or extra configuration that I need to make this work in Drone CI?