I'm trying to create annotated tag with POST /tags/
The tag appears without it, even with hardcode param (snippet below).
script:
- git tag ${TAG} || true
- git push origin ${TAG}
- '#curl -X POST --header "PRIVATE-TOKEN: ${CI_TAG_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/tags?tag_name=${TAG}&ref=master&message=testtag" '
I suppose that the problem may happens cause I do not specify the message in the git tag -m, but if I try to do this, an error occurs:
Cannot autodetect email
Which is probably reasonable for the runner command.
How can I fix it?