nektos / act

Run your GitHub Actions locally 🚀
https://nektosact.com
MIT License
54.01k stars 1.35k forks source link

Support empty workflow yaml files #2006

Open guettli opened 1 year ago

guettli commented 1 year ago

Act version

act version 0.2.50

Feature description

Sometimes we comment out github worklow yaml files compleletly, so that they don't get executed.

But then act -l fails:

❯ act -l
Error: unable to read workflow 'empty.yml': file is empty: EOF

It would be nice if act -l would work, even if there are empty workflow files.

silverwind commented 5 months ago

What does GitHub actions do with such files? Throw an error or silently ignore it?

guettli commented 5 months ago

What does GitHub actions do with such files? Throw an error or silently ignore it?

I got not error from Github. The file got ignored, that's why I opened this issue.

silverwind commented 5 months ago

Ok, yes then it makes sense for act to ignore it as well.