Skip to content

Regular expression pattern matching is possible in github actions? #26771

Discussion options

You must be logged in to vote

One option would be to use startWith() on github.event.pull_request.base.ref.

If you need more complex logic the best thing might be to feed the base ref to a custom command/script, and decide what to write to GITHUB_ENV in there. That way you have a lot more options to write the logic you need.

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants