While trying to use reusable workflows I ended up with a very confusing error that makes little sense.
Invalid workflow file : .github/workflows/release.yml#L1 handling usage of workflow "ansible-community/ansible-compat/.github/workflows/tox.yml@main": workflow is invalid: `workflows` cannot be empty
This happened on chore: remove unaccepted keyworkd for reused workflows (#86) · ansible-community/ansible-compat@2fda08d · GitHub and the logic is quite simple: a release workflow that is reusing two other workflows, the testing one and the release body itself.
As seen at ansible-compat/release.yml at 2fda08dc9f61f1a945607d0da695fc7df4298d83 · ansible-community/ansible-compat · GitHub that is only a chain of two reused workflows.
I am ware that the current beta does not allow nesting reusable workflows, but that is not nesting at all as they are called one after another.
What is wrong? Did I find a bug?