社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

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

pkaramol • 1 年前 • 255 次点击  

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

{
  "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
 
255 次点击