26
26
matrix : ${{ steps.setup-matrix.outputs.matrix }}
27
27
steps :
28
28
- id : setup-matrix
29
- uses : druzsan/setup-matrix@main
29
+ uses : druzsan/setup-matrix@v2.0.0
30
30
with :
31
31
# Use | to preserve valid YAML syntax
32
32
matrix : |
@@ -67,7 +67,7 @@ Not only syntax validity, but also built-in matrix restrictions (e.g. empty resu
67
67
It is highly recommended to use `|` prefix for multi-line strings :
68
68
69
69
` ` ` yaml
70
- uses: druzsan/setup-matrix@main
70
+ uses: druzsan/setup-matrix@v2.0.0
71
71
with:
72
72
matrix: | # Setup matrix with OS and Python version
73
73
os: [ubuntu-latest, windows-latest]
83
83
Flow YAML syntax is also supported :
84
84
85
85
` ` ` yaml
86
- uses: druzsan/setup-matrix@main
86
+ uses: druzsan/setup-matrix@v2.0.0
87
87
with:
88
88
matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }'
89
89
` ` `
@@ -120,7 +120,7 @@ setup-matrix:
120
120
matrix: ${{ steps.setup-matrix.outputs.matrix }}
121
121
steps:
122
122
- id: setup-matrix
123
- uses: druzsan/setup-matrix@main
123
+ uses: druzsan/setup-matrix@v2.0.0
124
124
with:
125
125
matrix: |
126
126
os: [ubuntu-latest, windows-latest, macos-latest]
@@ -190,14 +190,14 @@ setup-matrix:
190
190
steps:
191
191
# Setup matrix on a dev branch
192
192
- if: startsWith(github.ref, 'refs/tags/')
193
- uses: druzsan/setup-matrix@main
193
+ uses: druzsan/setup-matrix@v2.0.0
194
194
with:
195
195
matrix: |
196
196
os: [ubuntu-latest, windows-latest, macos-latest]
197
197
python-version: [3.8, 3.10, 3.12]
198
198
# Setup matrix on the main branch
199
199
- if: github.ref == 'refs/heads/main'
200
- uses: druzsan/setup-matrix@main
200
+ uses: druzsan/setup-matrix@v2.0.0
201
201
with:
202
202
matrix: |
203
203
os: [ubuntu-latest]
@@ -209,7 +209,7 @@ setup-matrix:
209
209
python-version: 3.8
210
210
# Setup matrix on a tag
211
211
- if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
212
- uses: druzsan/setup-matrix@main
212
+ uses: druzsan/setup-matrix@v2.0.0
213
213
with:
214
214
matrix: |
215
215
os: [ubuntu-latest]
0 commit comments