Skip to content

[Possible Bug] Workflow not executed for pushes to PR branch when base branch contains "+" #25695

Answered by shrink
poikilotherm asked this question in Actions
Discussion options

You must be logged in to vote

The inputs for branch filters aren’t strings, they’re regular expressions (“filter patterns”) of which + is a special character.

You can use special characters in path, branch, and tag filters.

+ : Matches one or more of the preceding character.

The pattern you’ve used would match developct, developpct, developppct, developpppct etc.

A complete outline of the filter patterns is listed at the very bottom of the documentation under “Filter pattern cheat sheet” – not obvious if you’re not looking for it!

The pattern you’re looking for to match develop+ct exactly is:

develop\+ct

https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants