Remove Duplication across multiple Actions/Builds

So, we have a fairly complicated build process with lots of setup and parameters in a large matrix.  It runs great, in parallel across different params, etc.  It is triggered on every push/commit/branch/pr/etc.  Perfect, works as expected.

The problem I’m having is now I want to automate the build-and-Attach-to-Release process.  And what I am facing is a complete duplication of all the complex matrix, parameters, and built setup - twice over.

To keep things DRY, one would want to abstract all of this complexity to some type of shared module.  Maybe, something called “BuildModule” or something local to that repo only.

And I would want to call that BuildModule in my github actions.

Why can’t you write this as an action?