Closed cmutel closed 1 month ago
The official documentation recommends using startsWith(github.ref, 'refs/tags/') to see if there is a release, and we follow this practice. However, it no longer works, or at least not consistently.
startsWith(github.ref, 'refs/tags/')
Running echo ${{ github.ref }} on a tagged release now gives refs/heads/main, at least in my testing.
echo ${{ github.ref }}
refs/heads/main
Alternatives to this practice:
github.event.release.tag_name
release
v
Workaround for now is to push to pypi manually. The testpypi action runs fine.
fixed as of 9ee47efb8072303cf6476d873f392c7753d98082
The official documentation recommends using
startsWith(github.ref, 'refs/tags/')
to see if there is a release, and we follow this practice. However, it no longer works, or at least not consistently.Running
echo ${{ github.ref }}
on a tagged release now givesrefs/heads/main
, at least in my testing.Alternatives to this practice:
github.event.release.tag_name
or just triggering on the "publish" event. Would require triggeringrelease
events.v
, combined with a reliable way to get the tag name.Workaround for now is to push to pypi manually. The testpypi action runs fine.