Skip to content

Commit 4851258

Browse files
committed
attempt to use format to bypass yaml issues
1 parent 7f5cf9c commit 4851258

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/cd-pypi.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ jobs:
120120
needs: deploy_source
121121
name: Build wheels and source distribution
122122
strategy:
123-
matrix:
124-
os: ${{ fromJson(inputs.platforms != '' ? inputs.platforms : '[\"ubuntu-latest\"]') }}
125-
python: ${{ fromJson(inputs.pyversions != '' ? inputs.pyversions : '[\"310\"]') }}
123+
matrix: ${{ fromJson(format('{{"os": {0}, "python": {1}}}', (inputs.platforms != null && inputs.platforms != '' && inputs.platforms != '[]') && inputs.platforms || '["ubuntu-latest"]', (inputs.pyversions != null && inputs.pyversions != '' && inputs.pyversions != '[]') && inputs.pyversions || '["3.11"]' )) }}
126124
runs-on: ${{ matrix.os }}
127125
defaults:
128126
run:

0 commit comments

Comments
 (0)