Skip to content

Commit 0b1af93

Browse files
committed
correctly handle matrix in test for workflow dispatch
1 parent 9e48da2 commit 0b1af93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
version: ['release', 'pre-release']
30+
version: ${{ inputs.version && format('["{0}"]', inputs.version) || fromJSON('["release", "pre-release"]') }}
3131
config:
3232
# Default config for standard platforms
3333
- os: macos-latest
@@ -46,7 +46,7 @@ jobs:
4646
env:
4747
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
with:
49-
version: ${{ inputs.version || matrix.version }}
49+
version: ${{ matrix.version }}
5050
tinytex: ${{ inputs.tinytex || matrix.config.tinytex || 'true' }}
5151

5252
- run: quarto --version

0 commit comments

Comments
 (0)