TL;DR
If you don't care to read below and just want to see some samples have a look at my open-source repo for Azure DevOps:
https://dev.azure.com/PowerPlatform-ALM/_git/PowerPlatform-ALM-Advanced
I have a few for GitHub Actions but checkout this one from melody-universe the other co-author of the ALM for Dataverse workshop. Poke around their other repos and you'll find some gems.