Skip to content

Commit 834c715

Browse files
committed
Find bin directory to add to path
1 parent 28fdaca commit 834c715

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

install-quarto/action.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,7 @@ runs:
8080
if: ${{ inputs.tinytex == 'true'}}
8181
run: |
8282
quarto tools install tinytex
83-
case $RUNNER_OS in
84-
"Linux")
85-
echo "$HOME/bin" >> $GITHUB_PATH
86-
;;
87-
"macOS")
88-
;;
89-
"Windows")
90-
echo "%APPDATA%/TinyTeX/bin/win32" >> $GITHUB_PATH
91-
*)
92-
echo "$RUNNER_OS not supported"
93-
exit 1
94-
;;
95-
esac
83+
install_dir=$(quarto tools info tinytex | jq -r '.directory')
84+
bin_dir=$(dirname $(find $install_dir -name tlmgr))
85+
echo $bin_dir >> $GITHUB_PATH
9686
shell: bash

0 commit comments

Comments
 (0)