Py学习  »  Git

在GitHub操作中利用矩阵对象的关键和价值

pkaramol • 2 年前 • 354 次点击  

假设我有一个产生以下输出的步骤

{
  "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 }}
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/158923