Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support empty workflow yaml files #2006

Open
guettli opened this issue Sep 15, 2023 · 3 comments · May be fixed by #2271
Open

Support empty workflow yaml files #2006

guettli opened this issue Sep 15, 2023 · 3 comments · May be fixed by #2271
Labels
kind/feature-request New feature or request

Comments

@guettli
Copy link

guettli commented Sep 15, 2023

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 guettli added the kind/feature-request New feature or request label Sep 15, 2023
@pikomonde pikomonde linked a pull request Apr 2, 2024 that will close this issue
@silverwind
Copy link

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

@guettli
Copy link
Author

guettli commented Apr 11, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants