-
Notifications
You must be signed in to change notification settings - Fork 325
Feature request: allow for templating of steps #23766
Description
See the boilerplate used for token rotation here -- https://github.com/dotnet/runtime/blob/54e4456b01060f54e5bb7d715e77e5f41bac558f/.github/workflows/copilot-echo.md?plain=1#L32-L69
I would have expected a generic template import similar to AzDo templates to be able to share these reusable steps in multiple workflows in this repository. Instead we need to copy the boilerplate. Of course this particular bit of sharing will go away when we have better auth options, but I would hope that a better templating system that allows factoring front-matter into shared files might be possible. It could just be a pre-processor. My understanding was that we couldn't even pre-process the markdown because the workflow insists that the hash of the file in source control matches the one used to compile the workflow.