YunaBraska / github-workflow-plugin

Your Ultimate Wingman for GitHub Workflows and Actions! 🚀
https://github.com/YunaBraska/github-workflow-plugin
Apache License 2.0
44 stars 9 forks source link

Update github-workflow.json #68

Closed LeonardLaszlo closed 1 month ago

LeonardLaszlo commented 1 month ago

/ character should be escaped in regular expressions

Closes #000

Types of changes

Motivation

Why is this change required? What problem does it solve? It fixes a syntax error in Itellij Idea when the path to an action is in the following format: ./path/to/localfile.yml

Changes

Behaviour, Functionality, Screenshots, etc.

Try to match the previous regexp ( ^(.+/)+(.+).(ya?ml)(@.+)?$ ) against a valid input ( ./path/to/localfile.yml ) here: https://regex101.com/

Success Check

How can we see or measure the change?

Use the example above on https://regex101.com/

YunaBraska commented 1 month ago

Hey @LeonardLaszlo thanks for creating a PR. These schema files are coming from https://json.schemastore.org/github-workflow.json Probably you can also solve this globally there

LeonardLaszlo commented 1 month ago

Done here: https://github.com/SchemaStore/schemastore/pull/3943

YunaBraska commented 1 month ago

Next version with your change is published and will be available as soon as it's approved (usually takes 1 day). Thanks for the contribution.