From 528a80fbd1162aa5fc0d43c8638a54b58674a6ee Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Mon, 6 Apr 2020 17:03:12 +0800 Subject: [PATCH] fix Github Actions retry logic --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/ufuzz.yml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c1106fca03..2cad6518b10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,16 +23,16 @@ jobs: run: | git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs cd ~/.nvs - . ./nvs.sh || { git clean -xdf && . ./nvs.sh; } || { git clean -xdf && . ./nvs.sh; } + chmod a+x ./nvs.sh + while !(./nvs.sh --version); do git clean -xdf; done; + while !(./nvs.sh add $NODE); do :; done; + ./nvs.sh use $NODE cd - - nvs --version - nvs add $NODE || nvs add $NODE || nvs add $NODE - nvs use $NODE node --version npm config set audit false npm config set optional false npm config set save false npm config set update-notifier false npm --version - npm install || npm install || npm install + while !(npm install); do :; done; node test/$TYPE diff --git a/.github/workflows/ufuzz.yml b/.github/workflows/ufuzz.yml index 4b200b375bc..f6bc8a8db6f 100644 --- a/.github/workflows/ufuzz.yml +++ b/.github/workflows/ufuzz.yml @@ -17,16 +17,16 @@ jobs: run: | git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs cd ~/.nvs - . ./nvs.sh || { git clean -xdf && . ./nvs.sh; } || { git clean -xdf && . ./nvs.sh; } + chmod a+x ./nvs.sh + while !(./nvs.sh --version); do git clean -xdf; done; + while !(./nvs.sh add 10); do :; done; + ./nvs.sh use 10 cd - - nvs --version - nvs add 10 || nvs add 10 || nvs add 10 - nvs use 10 node --version npm config set audit false npm config set optional false npm config set save false npm config set update-notifier false npm --version - npm install || npm install || npm install + while !(npm install); do :; done; node test/ufuzz/job 3600000