Struggling to set continue-on-error, causing jobs to not start

I have a Matrix job set up, with a property entitled “required”, which is set to either “required” or “optional”

I want those jobs which are optional to still allow the workflow to continue on error.
Based on the documenattion, i’ve tried setting this:

continue-on-error: ${{ matrix.required }} == 'optional'

Which I believe should work, however while GitHub Actions isn’t complaing, those jobs that i’ve appended those lines to simply aren’t being triggered when they’re supposed to (I have a preliminary job running first). If I remove this line, the jobs trigger as expected.

What am I doing wrong?

Could you try setting the property like this:

continue-on-error: ${{ matrix.required == 'optional' }}

?

1 Like

that worked, thanks!

1 Like