From 3db90460459dacc60d53a6daeead708d608b2a6f Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 9 Jan 2023 12:24:57 +0200 Subject: [PATCH] retry helm plugin install up to 5 times --- .github/workflows/common_library_tests.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/common_library_tests.yaml b/.github/workflows/common_library_tests.yaml index fae325ae37..a1dd805a42 100644 --- a/.github/workflows/common_library_tests.yaml +++ b/.github/workflows/common_library_tests.yaml @@ -67,7 +67,13 @@ jobs: - name: Run tests run: | - helm plugin install https://github.com/quintush/helm-unittest --version v0.2.11 + retries=5 + x=$retries + while [ $x -gt 0 ]; + do + helm plugin install https://github.com/quintush/helm-unittest --version v0.2.11 && x=1 + x=$(($x-1)) + done cd library/common-test/ helm dependency update helm unittest --helm3 -f "tests/*/*.yaml" .