From e6469aaa0ceeae159b4fa443a2e68014eb487e36 Mon Sep 17 00:00:00 2001 From: Zakk Date: Tue, 20 Oct 2026 16:18:47 +1100 Subject: [PATCH] .github: retry the binhost key download A failed download reached gpg as empty input and failed the job with only "no valid OpenPGP data found", so download to a file with retries first. Signed-off-by: Zakk --- .github/actions/setup-gentoo/action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-gentoo/action.yml b/.github/actions/setup-gentoo/action.yml index b7e7854844..4d3810629b 100644 --- a/.github/actions/setup-gentoo/action.yml +++ b/.github/actions/setup-gentoo/action.yml @@ -42,7 +42,10 @@ runs: run: | getuto export GNUPGHOME=/etc/portage/gnupg - wget -qO - https://distfiles.gentoozh.org/gentoo-zh-binhost.asc | gpg --import + wget --no-verbose --tries=5 --waitretry=10 --retry-connrefused --retry-on-host-error \ + --retry-on-http-error=429,500,502,503,504 \ + -O /tmp/gentoo-zh-binhost.asc https://distfiles.gentoozh.org/gentoo-zh-binhost.asc + gpg --import /tmp/gentoo-zh-binhost.asc gpg --batch --yes --pinentry-mode loopback --passphrase-file "$GNUPGHOME/pass" --lsign-key 6A0726AF1476A2F382C6AC6638A0234EC16AD42E gpg --batch --check-trustdb