I committed some changes, then I tagged them:
git tag -f 0.9.5.0
Then I git push
and a workflow starts. I need to obtain and check this tag in the workflow, and I can't find a way to do that.
echo $GITHUB_REF
prints this:
refs/heads/master
And echo "github.ref_name=${{github.ref_name}}"
prints this:
echo "github.ref_name=master"
So neither method detects the tag. Why is it, and how can I get my 0.9.5.0
tag?