假设我有一个产生以下输出的步骤
{
"foo": 1,
"bar": 2,
"baz": 3
}
然后,我如何在
matrix
策略,例如
build-python-images:
needs:
- create-python-matrix
strategy:
matrix:
python-builds: ${{ fromJSON(needs.create-python-and-debian-matrix.outputs.python_builds) }}
uses: Org/repo/.github/workflows/reusable.yaml@master
with:
someinput: ${{ matrix.python-builds.key }}
anotherinput: ${{ matrix.python-builds.value }}