fix(actions): Fix how jobs in matrixes are grouped (#38980)