Skip to content

Feature request: allow for templating of steps #23766

@ericstj

Description

@ericstj

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.

cc @jeffhandley @ViktorHofer @PureWeen

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions