fix(anki): stop the new-card poll from dropping mined cards (#339)

This commit is contained in:
sudacode authored and GitHub committed 2026-11-24 00:05:33 -08:00
1 parent e05fb34f7b
commit 713cdb3ef8
4 files changed
+114 -4

No files matched your search

+7 -1
View File
@@ -66,7 +66,13 @@ jobs:
- name: Install mpv and ffmpeg (Windows)
if: runner.os == 'Windows'
run: |
choco install mpv ffmpeg -y --no-progress
# community.chocolatey.org has short 503/504 outages, so retry before failing the job.
for attempt in 1 2 3 4; do
choco install mpv ffmpeg -y --no-progress && break
if [ "$attempt" -eq 4 ]; then exit 1; fi
echo "choco install failed (attempt $attempt), retrying in $((attempt * 30))s"
sleep $((attempt * 30))
done
# The mpv package adds no shim, so put its directory on PATH for later steps.
mpv_exe="$(find /c/ProgramData/chocolatey/lib /c/ProgramData/chocolatey/bin "/c/Program Files" /c/tools -maxdepth 6 -iname mpv.exe 2>/dev/null | head -n 1)"
test -n "$mpv_exe"