Skip to content

Allow "injection" of steps to reusable workflows #2079

Closed

Description

@flobernd

Describe the enhancement

Reusable workflows are a great enhancement, but still limited e.g. compared to Azure DevOps templates. It would be great if we have some way to inject steps into a reusable workflow.

Possible implementations:

Additional information

I implemented a reusable generic .NET test workflow. Sadly some of the tests require a SQL database to run, others a Redis server, and so on. We now have the option to either add a bunch of conditional dependency setup steps to the reusable action (which effectively destroys the generic aspect) or to stop using the reusable action at all.

Activity

  1. added
    Actions FeatureFeature requires both runner, pipelines service and launch changes
    on Aug 31, 2022
  2. nikola-jokic commented on Aug 31, 2022

    @nikola-jokic
    Contributor

    Hey @flobernd,

    Thank you for submitting this enhancement! It has been added to the board and considered in future enhancements ☺️

  3. casanova-21 commented on Mar 16, 2023

    @casanova-21

    @nikola-jokic Hey! 👋 Can you give us an update on this one and whether or not it's made it onto your backlog or roadmap for this year? LinkedIn is asking about it.

  4. benwells commented on Mar 17, 2023

    @benwells

    Hey all! Nikola brought this to my attention and I reached out to the Product Manager who owns reusable workflows (this feature is owned by a different team than the one @nikola-jokic and I are a part of). The response was:

    In the long term, we want to provide support for step level insertion. However, currently, we are focusing on few other improvements in reusable workflows. At the moment, we don't have any concrete timelines but we will evaluate step templates support in CYQ3.

    I would recommend redirecting this feedback to the GitHub Community Support Forum, which would be a more appropriate place to get the attention of the proper teams for this feature request.

  5. flobernd commented on Mar 17, 2023

    @flobernd
    Author

    Thanks for the update. Posting in community forums on the other hand is like sending the message directly to /dev/null. None of my topics even got a single response yet... and I don't event blame you guys for not being able to properly monitor it. Just too much stuff, but pretty much pointless to post there any feature request.

  6. asottile commented on Sep 5, 2023

    @asottile

    for my use case I was able to make this work via a reusable local action

    https://github.com/asottile/workflows/blob/v1.5.0/.github/workflows/tox.yml#L60

    this checks for existence of the plugin point and then executes the action

    you can see an example usage in https://github.com/pre-commit/pre-commit

  7. janosh commented on Feb 19, 2025

    @janosh

    is this being tracked anywhere? i wasn't able to find a request for this feature in https://github.com/orgs/community/discussions. seconding @flobernd's sentiment, maybe worth transfering this issue to the right issue tracker instead of closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Actions FeatureFeature requires both runner, pipelines service and launch changesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions