From 10c96b19d01d139ffdc22c39e9ba80e8e1f7c241 Mon Sep 17 00:00:00 2001 From: Zzzabiyaka <79576401+Zzzabiyaka@users.noreply.github.com> Date: Sat, 24 Jun 2023 02:15:34 +0100 Subject: [PATCH] Add retries to flaky step in nightly run CI (#2306) Adds more automated way for errors like this: https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/5328561662 Proposed dependency : https://github.com/nick-fields/retry Co-authored-by: Maksim Litskevich --- .github/workflows/nightly_run.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly_run.yml b/.github/workflows/nightly_run.yml index c83734d68..4664ad636 100644 --- a/.github/workflows/nightly_run.yml +++ b/.github/workflows/nightly_run.yml @@ -279,7 +279,12 @@ jobs: uses: actions/checkout@v3 - name: Install dependencies - run: apt update && apt install -y make g++-4.8 gcc-4.8 wget git + uses: nick-fields/retry@v2 + with: + timeout_minutes: 10 + max_attempts: 3 + command: apt update && apt install -y make g++-4.8 gcc-4.8 wget git + on_retry_command: sudo rm -r /var/lib/apt/lists/* - name: Install cmake run: |