Template Question

I have setup a global template that I use for 9 of my pipelines. I have 2 repos that require additional steps that the other 9 do not.

Is there any way to leverage the global template (or another method) and only add the additional steps needed for these 2 repos to maintain one global template (code base) for repeatable steps? I would need to add steps in the middle of the pipeline.

Global Template steps
clone
tags
build
discord
email

App repo with different steps
clone
tags
makefile
build
discord
email