question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/data/workflow_dir/_actions/actions/checkout/v2.4.0'.

See original GitHub issue

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:

Error: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/data/workflow_dir/_actions/actions/checkout/v2.4.0'. Did you forget to run actions/checkout before running your local action?

Would be lovely if anyone can help, thanks! 😃

image

image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:13
  • Comments:9

github_iconTop GitHub Comments

7reactions
kaleidawavecommented, Jun 7, 2022

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

4reactions
homeaidepicommented, Apr 28, 2022

Talking out my problem gave me some inspiration. Finally a breakthrough. So I just added this to the end of my action # Checkout the repo - uses: actions/checkout@v3 with: # Repository name with owner. For example, actions/checkout Default: ${{ github.repository }} So Post Run needs to get connected back with this running actions repo and not whatever repo you connect to perform some external operation. Silly I need to remind the Action what its repo is, (by rechecking out to “this” or “local scope”) but whatever, I got it and hope it helps someone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub Composite Actions: Can't find 'action.yml'
Composite actions have to be defined with action.yml . I have done something similar, try this layout: .github ├── actions ...
Read more >
Building a GitHub Action with Docker - baeke.info
deploy/deployment.yaml. To do this easily from a GitHub workflow, I created an action called gbaeke/kyverno-cli. The action uses a Docker ...
Read more >
How to set up GitHub workflows and create GitHub Actions ...
To create a Docker-based GitHub Action, we need a GitHub repository with action.yml and Dockerfile in the root of the repository.
Read more >
Example for Continuous Integration with GitHub Actions
Using containers: Our action will use a Docker container so it will require a Dockerfile. Let's add it now. We won't discuss what...
Read more >
Example workflows - Docker Documentation
Docker GitHub Actions workflow examples. ... Docker meta id: meta uses: docker/metadata-action@v4 with: # list of Docker images to use as base name...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found