has anyone had much luck creating dynamic matrixes...
# github-actions
t
has anyone had much luck creating dynamic matrixes?
Copy code
Error when evaluating 'strategy' for job 'scaling-jobs'. .github/workflows/on_manual_scale.yaml (Line: 48, Col: 17): Error reading JToken from JsonReader. Path '', line 0, position 0.,.github/workflows/on_manual_scale.yaml (Line: 48, Col: 17): Unexpected value ''
my matrix looks like:
Copy code
echo "Matrix set to :"
echo "[$joined]"
["1","2","3","4","5","6","7","8","9","10"]
my output looks like
Copy code
echo "::set-output name=matrix::[$joined]"
and my strategy on my downstream job looks like:
Copy code
strategy:
        matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}
Got it, output was wrong. Its still a bit magic to me though 😄