Assume an action that triggers when a PR is made to a branch “ticket-123”, where “ticket-” is fixed. I can easily make a conditional step, using “if: startsWith()”.
Question: I need to pass “123” as a parameter to an action:
- uses: an/action with: parameter-name: ???
How do I get “123” from “ticket-123”. I cannot seem to find in the docs anything about substring being supported, so there should be some other way.
Any help will be greatly appreciated. Thanks!