As can be seen in this CI action run, the current tag chosen by goreleaser was v0.11.0-nightly.20240601 instead of v0.10.1, which was the actually pushed tag. This change manually sets the current tag using an ENV variable set to github.ref_name, which will contain the name of the pushed tag. The action is restricted to only run when a tag is pushed, so github.ref_name should always contain the name of the tag.
Description
As can be seen in this CI action run, the current tag chosen by goreleaser was
v0.11.0-nightly.20240601
instead ofv0.10.1
, which was the actually pushed tag. This change manually sets the current tag using an ENV variable set togithub.ref_name
, which will contain the name of the pushed tag. The action is restricted to only run when a tag is pushed, sogithub.ref_name
should always contain the name of the tag.