Skip to content

Commit facf195

Browse files
author
MarcoFalke
committed
ci: Retry lint image building once after failure
The same was done for the other CI tasks in commit fa6aa9f. This may guard against intermittent network issues to download the base image or packages ...
1 parent fac4f6d commit facf195

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,10 @@ jobs:
621621
"."
622622
]
623623
624-
run(build_cmd)
624+
if run(build_cmd, check=False).returncode != 0:
625+
print(f"Retry building image tag after failure")
626+
time.sleep(3)
627+
run(cmd_build)
625628
626629
CIRRUS_PR_FLAG = []
627630
if '${{ github.event_name }}' == "pull_request":

0 commit comments

Comments
 (0)