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

Allow running a playbook from a Collection #9

Open
p-j-smith opened this issue Dec 7, 2023 · 0 comments
Open

Allow running a playbook from a Collection #9

p-j-smith opened this issue Dec 7, 2023 · 0 comments

Comments

@p-j-smith
Copy link

Hi,

I'm using your action.playbook GitHub Action but running into an error:

failed to find playbook files

I think the issue is that I would like to run a playbook from a collection, but this module requires the playbook to be a local file:

for _, p := range p.Config.Playbooks {
files, err := filepath.Glob(p)
if err != nil {
playbooks = append(playbooks, p)
continue
}
playbooks = append(playbooks, files...)
}
if len(playbooks) == 0 {
return errors.New("failed to find playbook files")
}

Would it be possible to add support for running playbooks from Collections too? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant