Skip to content

Commit 5bd3c31

Browse files
committed
Try using pwsh shell available for all OS too
as on Windows it will match `quarto` in PATH for `quarto.cmd` which does not happen in bash shell
1 parent f26424f commit 5bd3c31

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/actions/quarto-dev/action.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,22 @@ runs:
1010
run: |
1111
./configure.sh
1212
echo "$HOME/bin" >> $GITHUB_PATH
13-
echo "QUARTO_BIN=quarto" >> $GITHUB_ENV
1413
1514
- name: Configure Quarto (.ps1)
1615
if: runner.os == 'Windows'
1716
shell: pwsh
1817
run: |
1918
./configure.cmd
2019
$env:QUARTO_BIN_DEV >> $env:GITHUB_PATH
21-
"QUARTO_BIN=quarto.cmd" >> $env:GITHUB_ENV
2220
2321
- name: Basic dev mode sanity check
24-
shell: bash
22+
shell: pwsh
2523
run: |
26-
[ "$(${{ env.QUARTO_BIN }} --version)" == "99.9.9" ] || exit 1
27-
[ "$(${{ env.QUARTO_BIN }} --paths | grep package/dist/share)" == "" ] || exit 1
28-
[ "$(git status --porcelain)" == "" ] || exit 1
24+
If ( "$(quarto --version)" -ne "99.9.9") { Exit 1 }
25+
If ( -not $(quarto --paths | Select-String -Pattern "package[/\\]+dist[\/]+share") -ne $null ] { Exit 1 }
26+
If ( -not "$(git status --porcelain)" -ne "" ) { Exit 1 }
2927
3028
- name: Quarto Check
3129
working-directory: tests
32-
shell: bash
33-
run: ${{ env.QUARTO_BIN }} check
30+
shell: pwsh
31+
run: quarto check

0 commit comments

Comments
 (0)