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

Add example of how to use actions in actions (aka. composite run steps) #17

Open
manovotny opened this issue Feb 11, 2021 · 1 comment

Comments

@manovotny
Copy link
Owner

manovotny commented Feb 11, 2021

GitHub introduced something called composite run steps, which gave me such high hopes for abstracting repeatable steps that are used in multiple workflows.

For example, this would allow things like like cloning a repo, configuring node, installing / caching dependencies, etc. to be extracted into a referenceable YAML file and then "sucked into" in a test workflow and a release workflow, which both need to do all of those thing. This would help with the GitHub action copy / paste fatigue and help keep things DRY.

Unfortunately, this is not possible as you can't use uses (any many other things, as seen here and as mentioned in actions/runner#646). You can really only run shell commands, which is cool and a step in the right direction, but quite limiting. 😞

Sounds like GitHub is actively working on it, so here's to hoping! 🤞

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