YunaBraska / github-workflow-plugin

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

Support local actions (without token?) #16

Closed rob-valor closed 10 months ago

rob-valor commented 10 months ago

What happened? actions in same repository (not pushed to GitHub) are not found and requests for a GitHub token. So no plugin support during development. Did not add token yet, but it should work without. All local and GH public files are accessible without token.

How can we reproduce the issue? Add an action in same repository and don't add token. Reference that action in an other action or workflow in same repository.

Expected behavior Pick up the action because there is no Github access required as the file is not pushed yet.

Screenshots image

Additional context Plugin seems to be completely broken if no GH token is provided. This is not expected behavior.

YunaBraska commented 10 months ago

Thx @rob-valor It's not "completely broken" And yes it should work without Token :) This plugin is pretty new, and I am currently collecting use cases to provide composite actions support. Therefore, your input is really important. It might work when adding ./.github as prefix _(e.g. ./.github/your_action or ./.github/your_action.yaml)_ Anyway, I will work on that.

rob-valor commented 10 months ago

I've been trying several paths and locations but I don't get any plugin support. I'm using workflows <repo>/.github/workflows/<workflow-name>.yaml of which one references an other one and actions <repo>/<action-name>/action.yaml and also there some references from one to another.

When using the checkout action, I have plugin support. So, indeed, it's not completely broken :hand_over_mouth:

YunaBraska commented 10 months ago

The new Version 2.2.7 (will be public in few days) will have a better support for local actions. Syntax Highlighting and also Code Completion for action.yml files is on my list. Therefore, not every Intellisense will work inside the action.yml files.

YunaBraska commented 10 months ago

2.2.7 is published. It should work now

rob-valor commented 10 months ago

I'm unable to verify this because of #22