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

Schema validation error when creating composite custom action #66

Closed Jintus closed 2 months ago

Jintus commented 2 months ago

What happened? When creating a composite custom action, if I set runs.using to composite then trying to set runs.steps[*]. I have a schema validation error saying that runs.main or runs.image should be set. Which is not true regarding Github documentation

How can we reproduce the issue? Steps to reproduce the behavior:

  1. Create an action.yaml file in .github/actions folder
  2. Fill the name, description properties
  3. create a runs property with runs.using set to 'composite'
  4. Try to create a steps property

Relevant log output

Schema validation: One of the following property sets is required: property 'main' or property 'image'

Operating System

macos Sonoma 14.5

Plugin Version

3.2.1

IDE Name and Version

Webstorm 2024.1.5

Expected behavior I could be able to not set runs.main or runs.image

Screenshots CleanShot 2024-07-09 at 17 07 40

Jintus commented 2 months ago

In fact, there was some error in my steps property. It's working fine after fixing them. No longer an issue