Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/data/workflow_dir/_actions/actions/checkout/v2.4.0'.
See original GitHub issueHi,
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! 😃
Issue Analytics
- State:
- Created 2 years ago
- Reactions:13
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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.