Skip to content

Commit 721c123

Browse files
committed
try detecting the PATH directly
1 parent ebe2311 commit 721c123

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

install-quarto/action.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ runs:
8080
if: ${{ inputs.tinytex == 'true'}}
8181
run: |
8282
quarto tools install tinytex --log-level warning
83-
bin_dir=$(quarto tools info tinytex | jq -r '.["bin-directory"]')
84-
echo $bin_dir >> $GITHUB_PATH
83+
case $RUNNER_OS in
84+
"Linux")
85+
echo "$HOME/bin" >> $GITHUB_PATH
86+
;;
87+
"macOS")
88+
echo "$(dirname $(find ~/Library/TinyTeX -name tlmgr))" >> $GITHUB_PATH
89+
;;
90+
"Windows")
91+
echo "$(dirname $(find $APPDATA/TinyTeX -name tlmgr.bat))" >> $GITHUB_PATH
92+
*)
93+
echo "$RUNNER_OS not supported"
94+
exit 1
95+
;;
96+
esac
97+
echo "TinyTeX installed !"
8598
shell: bash

0 commit comments

Comments
 (0)