[Solved] can't find 'action.yml', 'action.yaml' or 'Dockerfile'
The Problem is "Github Actions were working in my repository till yesterday. I didn't make any changes in .github/workflows/dev.yml file or in DockerFile." But, suddenly in recent pushes, my Github Actions fail with the error -
Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/work/_actions/GoogleCloudPlatform/github-actions/master/setup-gcloud'. Did you forget to run actions/checkout before running your local action?
Solution:
First, open your .yml file . you have to change the way you reference Google Cloud Platform actions in your yml:
steps: - id: gcloud - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master + uses: google-github-actions/setup-gcloud@master
Another way is -
steps: - id: deploy - uses: GoogleCloudPlatform/github-actions/deploy-cloudrun@master + uses: google-github-actions/deploy-cloudrun@main
There are some changes notice from google-github-actions.
visit here for details - https://github.com/google-github-actions/setup-gcloud#use-google-github-actionssetup-gcloud
Thanks for reading the post. If you face any problem please contact us below.