-
Notifications
You must be signed in to change notification settings - Fork 110
Unable to find reusable workflow #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
Any news? I'm getting this too! :) |
👋 Can you try pinning the reusable workflow to a branch or SHA to see if it resolves the error? |
Same here. Pinning to branch and SHA does not resolve the issue. Also even if branch is not yet pushed, it should be able to find the file locally (as soon as the branch is published, file will be there and if reusable workflow is triggered on PR, it will be triggered and will pass). |
This seems to happen to me when I open the I have two windows open right now:
Why would I not open the repo-root instead, you might ask? Because:
I think it would help if this extension could walk up the directory tree and deal with paths relative to the location of the files' closest-parent |
I have my root folder opened - and it was happening to me... but now it solved itself, I relaunched VSCode this morning (update) and paths work fine now. |
I'm glad it's solved for you! I just restarted-to-update too, and it's still not resolving relative paths with |
It got solved when you close and open your vs code editor |
I had this today after a VS Code Update. I'm using WSL2 and Dev Containers. To fix it I closed VS Code again, went to the WSL CLI and ran Not sure if all these steps are necessary, YMMV. |
Restarting my VSCode many times did not help, however ReLOADING the window did with the command palette "Developer: Reload Window". Confirmed by changing the name of a valid file to missing (I get the red line) then changing it back the error goes away. |
Still happening on MacOS. Reloading window doesn't help, restarting doesn't help. Edit, what helped for me was to:
|
In my case the error message was truly misleading.
When adding |
Same problem here and I actually don't want to specify a version as it is in the same repo and shall be used from the same branch es the invoking workflow. Also it should link to the local file in vscode as in my case it is local and in the same repo |
I had the same issue when I was opening my .yml files on Visual Code as "standalone" files. I fixed this by going to the Explorer tab and opening my whole project in Visual Code. Then it was able to identify the workflows as a composition of files. |
Yes for me opening the whole folder in code in a new instance seems to have fixed it. |
Still have the issue too |
This worked for me. Thanks. |
Describe the bug
When leveraging local reusable workflows, i.e. referencing other workflows inside of the
.github/workflows/
directory, the extension claims that it cannot find the reusable workflow. The reusable workflow is indeed in the right place, and it executes successfully by Github Actions.To Reproduce
Steps to reproduce the behavior:
And the following workflows:
base.yml
in VS Code.Unable to find reusable workflow
is presented. In addition, this is the output fromGithub Actions Language
:Expected behavior
As this is indeed a valid file reference according to github documentation, and since it does indeed execute successfully, this error should not occur.
Screenshots

Extension Version
v0.26.1
The text was updated successfully, but these errors were encountered: