I have two workflows. One deploys on push to master to a test environment. The other deploys on release to prod environment. They are 90% identical, code copy&paste.
Is there a concept such as extracting part of the duplicate logic and putting it into its own file/partial/fragment?