The build, pull request, and on push to main all have the same build steps. If possible, put that in one place and those workflows should reference it