You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The backslash characters to escape the parentheses and \w tokens are themselves being escaped, making them literal backslash characters instead of regex tokens. This causes the regex to fail.
The escaping occurs regardless of whether I use a flow or block scalar.
What you expected to happen
The INPUT_REGEX should match what I specified in the workflow YAML.
The input regex should be unmodified, or if the characters are being escaped by the YAML processor there needs to be a pre-processor in the action to handle this scenario.
What happened
I am using the following regex:
Which in my workflow YAML is as follows:
To match pull request comment strings with release note items.
See example: https://regex101.com/r/L4yv36/1
When I run the action, though, the input regex that gets passed is:
The backslash characters to escape the parentheses and
\w
tokens are themselves being escaped, making them literal backslash characters instead of regex tokens. This causes the regex to fail.The escaping occurs regardless of whether I use a flow or block scalar.
What you expected to happen
The
INPUT_REGEX
should match what I specified in the workflow YAML.The input regex should be unmodified, or if the characters are being escaped by the YAML processor there needs to be a pre-processor in the action to handle this scenario.
How to reproduce it
Environment
Testing my GitHub action using
act
.The text was updated successfully, but these errors were encountered: