Hi all. I have a GitHub action with two jobs. The first job returns an array, which I’ve been able to pass to a second job which then uses that array as its matrix. But the first job can sometimes return an array with zero length, and when it does, the second job crashes with the error:
Error when evaluating 'strategy' for job 'Job-2'. (Line: 52, Col: 11): Matrix vector 'cfg' does not contain any values
How can I resolve this? Ideally, if job-1 returns an array with zero elements, the second job would not run at all.
I’ve seen this continue-on-error flag, but I’m not sure exactly how to use it. In my case, the crash doesn’t seem to occur on any specific step–it occurs when the job is trying to evaluate the matrix.
My Code (myfile.yml)