Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 2

[Feature Request] YML Function: Replace/Substitute



I'd really like to be able to use a function like

replace(string, to_replace, out)

in Action workflow yml files. This function and


should allow any string to be produced. Regex functionality is overkill IMO but I'm sure some will complain without it :)


My main usage right now would be to strip


from the

${{ github.ref }}

context string.




(Also how can I not write gh-flavored markdown in this post? Who in their right mind made that decision?)

1 Reply
Message 2 of 2

Re: [Feature Request] YML Function: Replace/Substitute

Hi @sburns,


Thanks for this feedback! We're always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I've logged your feature request in our internal feature request list. Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.