Skip to content

Commit 8de90f3

Browse files
committed
Add error handling to TinyTeX pattern download
Gracefully exit with warning if TinyTeX daily release download fails. This prevents workflow failure when daily release hasn't been published yet.
1 parent 7792b8d commit 8de90f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/verify-tinytex-patterns.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ jobs:
2222
env:
2323
GH_TOKEN: ${{ github.token }}
2424
run: |
25-
gh release download daily --repo rstudio/tinytex-releases --pattern "regex.tar.gz"
25+
if ! gh release download daily --repo rstudio/tinytex-releases --pattern "regex.tar.gz"; then
26+
echo "::warning::Failed to download TinyTeX daily release - may not be published yet"
27+
exit 0
28+
fi
2629
tar -xzf regex.tar.gz
2730
echo "✓ Downloaded and extracted regex.json"
2831

0 commit comments

Comments
 (0)