I have a workflow with 4 jobs defined.
The first job essentially returns a boolean and depending on that boolean the next 2 jobs will run in parallel.
Following successful completion of those 2 jobs the final one runs.
I was going to use Job status check functions with jobs 2 and 3 to decide whether they should run or not but I dont want to set the state of job 1 to failed as that is misleading. It has not failed, its just the outcome of the check it has performed is false and so the workflow should stop here. I had thought of cancelling the workflow if the job1 result is false but to my knowledge there is no way to programatically cancel a running workflow. Is there a suggested way to handle a case like this? I guess I could save a file with the outcome of job 1 and use the upload artifact action but that seems like a hugely bloated way for what I’m trying to achieve