Skip to content

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

Open
@manovotny

Description

@manovotny

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! 🤞

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions