Skip to content

Commit 847f9b3

Browse files
committed
Add retry loop to CI tool install steps
Wraps TinyTeX and Chrome Headless Shell install steps in a 3-attempt retry loop with 15s delay. Uses GitHub Actions annotations (::warning:: and ::error::) for visibility. Defense-in-depth alongside the internal download retry added to downloadWithProgress.
1 parent c1e4f8a commit 847f9b3

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/test-install.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,27 @@ jobs:
4040
env:
4141
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
run: |
43-
quarto install tinytex
43+
for attempt in 1 2 3; do
44+
if quarto install tinytex; then
45+
exit 0
46+
fi
47+
echo "::warning::Attempt $attempt failed, retrying in 15s..."
48+
sleep 15
49+
done
50+
echo "::error::TinyTeX install failed after 3 attempts"
51+
exit 1
4452
4553
- name: Install Chrome Headless Shell
4654
run: |
47-
quarto install chrome-headless-shell --no-prompt
55+
for attempt in 1 2 3; do
56+
if quarto install chrome-headless-shell --no-prompt; then
57+
exit 0
58+
fi
59+
echo "::warning::Attempt $attempt failed, retrying in 15s..."
60+
sleep 15
61+
done
62+
echo "::error::Chrome Headless Shell install failed after 3 attempts"
63+
exit 1
4864
4965
- name: Verify tools with quarto check
5066
run: |

0 commit comments

Comments
 (0)