action-release icon indicating copy to clipboard operation
action-release copied to clipboard

strip the prefix for github.ref (refs/heads)

Open xavierchow opened this issue 2 years ago • 1 comments

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

xavierchow avatar May 07 '22 07:05 xavierchow

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.

ceorourke avatar May 09 '22 17:05 ceorourke