I would like my build_nightlies
scheduled job to only execute if the current branch is ‘green’. Is it possible to detect the build status of the branch and then start/stop a workflow based on that resut?
A bit more context:
I’ve got a run_tests
job that runs all day long on every code push. I’ve also scheduled a build_nightlies
job to run in the middle of the night, but I only want it to build things if the last run_tests
job ran successfully.
I know I could set up a workflow to execute my run_tests
and then build_nightlies
jobs, but it’s unnecessary to execute run_tests
again since that would just be redundant of the previous build.