Skip to content

Commit 474b198

Browse files
committed
fix typst caching too
1 parent ec8cd58 commit 474b198

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/actions/cache-typst/action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ outputs:
99
value: ${{ steps.cache-typst-restore.outputs.cache-primary-key }}
1010
cache-matched-key:
1111
description: "Key of the cache found and used."
12-
value: ${{ steps.cache-typst-restore.outputs.cache-primary-key }}
12+
value: ${{ steps.cache-typst-restore.outputs.cache-matched-key }}
1313
cache-path:
1414
description: "where is the packages cache for typst ?"
1515
value: ${{ steps.cache-typst-path.outputs.TYPST_CACHE }}
@@ -22,20 +22,21 @@ runs:
2222
run: |
2323
case $RUNNER_OS in
2424
"Linux")
25-
echo "TYPST_CACHE=${XDG_CACHE_HOME:-~/.cache}/typst/packages/" >> $GITHUB_ENV
25+
typst_cache="${XDG_CACHE_HOME:-~/.cache}/typst/packages/"
2626
;;
2727
"macOS")
28-
echo "TYPST_CACHE=~/Library/Caches/typst/packages/" >> $GITHUB_ENV
28+
typst_cache="~/Library/Caches/typst/packages/"
2929
;;
3030
"Windows")
31-
echo "TYPST_CACHE=$LOCALAPPDATA/typst/packages/" >> $GITHUB_ENV
31+
typst_cache="$LOCALAPPDATA/typst/packages/"
3232
;;
3333
*)
3434
echo "$RUNNER_OS not supported"
3535
exit 1
3636
;;
3737
esac
38-
echo "TYPST_CACHE=${TYPST_CACHE}" >> $GITHUB_OUTPUT
38+
echo "TYPST_CACHE=${typst_cache}" >> $GITHUB_ENV
39+
echo "TYPST_CACHE=${typst_cache}" >> $GITHUB_OUTPUT
3940
shell: bash
4041

4142
- name: Cache Typst package folder

0 commit comments

Comments
 (0)