action-release
action-release copied to clipboard
strip the prefix for github.ref (refs/heads)
I have a case that in the staging environment we are not using the tags but a release-candidate branch, so I'm expecting to have a release candidate branch name as the version.
I noticed that only the refs/tags/
is stripped, so when setting version
with ${{ github.ref }}
it complains the slashes are not permitted.
I'm wondering if we can enhance the following regex process to allow strip the prefix for refs/heads as well?
https://github.com/getsentry/action-release/blob/62ef65f6be4e703c6c153f08bc7a8cb3d3a3a537/src/options.ts#L14-L15
Hi @xavierchow, thanks for the issue! I've created a ticket in our team's backlog to address this and we'll reply to this issue to update you.