act icon indicating copy to clipboard operation
act copied to clipboard

Support empty workflow yaml files

Open guettli opened this issue 2 years ago • 3 comments

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.

guettli avatar Sep 15 '23 11:09 guettli

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

silverwind avatar Apr 10 '24 22:04 silverwind

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.

guettli avatar Apr 11 '24 09:04 guettli

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

silverwind avatar Apr 11 '24 10:04 silverwind