-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/data/workflow_dir/_actions/actions/checkout/v2.4.0'. #692
Comments
Additional notes: I've tried to downgrade the |
Any word on this. Lots of people including me are seeing this on post run. My issue stems from what I believe is I connect via checkout@v2 or v3 to a different repo then the action is running under and if I remove the blocks for that everything works so some wires get crossed when you are on a repo in the main action that kicks off the workflow but then inside that workflow you use a different repo and wires get crossed on Post Run, but everything worked in run. Weird: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' Its such a dumb error cause if the action wasnt there it could have never run. Like how the heck CANT a post run find an action that the main run just executed from... |
Talking out my problem gave me some inspiration. Finally a breakthrough. So I just added this to the end of my action |
I'm experiencing the same in combination with:
|
Was having the same problem. Looks like it only currently supports it as a whole job rather than in a step. https://github.community/t/actions-reusable-workflow-failing-to-find-action-yml-that-does-exist/231258/3 |
multi-checkout-action checkout@v2 should be the first one
|
I wish GitHub would keep topics from being deleted (I'm trying to set up my CI and already ran into a handful of dead community links), thankfully the Internet Archive has a copy https://web.archive.org/web/20220427182405/https://github.community/t/actions-reusable-workflow-failing-to-find-action-yml-that-does-exist/231258/3 |
You are confusing workflows with actions, if you define
|
it took me hours of to figure out this, thanks @homeaidepi for pointing it out. In my case I have my composite action, inside the action I checkout to another repo. And it keeps on showing Post Run failed for the action. Then I realized that I need to checkout again to my main repo again (origin repo, where workflow triggered) |
@maitrungduc1410 and @homeaidepi THANK YOU for your comments--this worked for me!!! To reiterate for future readers deep in the rabbit of debugging: in the context of calling a local action ("local" meaning in the same repo as the workflow calling the action, and "action" meaning a composite action, which is different from a reusable workflow), if that action checks out other repos, the runner fails to clean up the original workspace that triggered the workflow. That's because during clean-up, the runner's in the repo the action checked out, so it can no longer find the action file. A workaround to this is to check out the original repo again so that now the runner can clean up the local action. Failed run: |
What is the exact solution team i am getting the same error @Sophie1142 |
What worked for me was to remove the Checkout step from the local action |
Hi, I have another solution don't need re-checkout origin source using for ex: - name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: my-org/my-tools
path: my-tools
- name: Install Dependencies
working-directory: my-tools
shell: bash
run: npm install
- name: do something else
shell: bash
working-directory: my-tools
run: |
date > generated.txt
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "generated"
git push
Hope it helps you guys!. |
calling a workflow instead of an action Testfile dem Projekt hinzugefügt mit der Eigenschaft: Copy
For us, the solution was found here https://github.com/orgs/community/discussions/26245#discussioncomment-5962450 |
At the end of the GitHub Action, checkout the original package to return the scope to enable subsequent actions. Prior to this change, the Post Run of integ tests failed after successfully deploying GitHub Pages, with an error `Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/work/smithy-gh-pages-action/smithy-gh-pages-action'. Did you forget to run actions/checkout before running your local action?` Ref: actions/checkout#692 (comment)
Add a workaround to make it work when the workflow is called from another repository. ### Notes Workaround found in actions/checkout#692 (comment) Tested in bonitasoft/bonita-labs-doc#160
I also encountered the same problem, how to solve it? |
Hi,
For some reason since yesterday, whenever Github Action ran, they'll failed on the first attempt, but will always succeed on the second attempt.
The error message:
Would be lovely if anyone can help, thanks! :)
The text was updated successfully, but these errors were encountered: