Skip to content

Commit 79db8a5

Browse files
authored
Merge pull request #14400 from nextcloud/copilot/fix-apt-get-update-retries
2 parents 24ba9c1 + 79ccf75 commit 79db8a5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/sphinxbuild.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ jobs:
4242
- name: Download LaTeX packages (cache miss only)
4343
if: steps.cache-latex-apt.outputs.cache-hit != 'true'
4444
run: |
45-
sudo DEBIAN_FRONTEND=noninteractive apt-get update -o Dir::State::lists="${{ runner.temp }}/.cache/lists"
45+
for i in 1 2 3; do
46+
sudo DEBIAN_FRONTEND=noninteractive apt-get update \
47+
-o Dir::State::lists="${{ runner.temp }}/.cache/lists" \
48+
-o Acquire::Retries=3 && break
49+
echo "apt-get update failed (attempt $i), retrying in 15s..."
50+
sleep 15
51+
done
4652
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
4753
--download-only \
4854
-o Dir::State::lists="${{ runner.temp }}/.cache/lists" \

0 commit comments

Comments
 (0)