From b83612d9b3e31e1e36709bb69ad982cb50066fc2 Mon Sep 17 00:00:00 2001 From: Anmol Date: Tue, 18 Jun 2024 19:44:10 +0530 Subject: [PATCH] feature: add another retry in action, since now we check for failure cases more early (#32) --- action.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/action.yaml b/action.yaml index 0072383..4d44968 100644 --- a/action.yaml +++ b/action.yaml @@ -180,3 +180,18 @@ runs: --helmNamespace ${{ steps.set-namespace.outputs.namespace }} \ --helmChart ${{ inputs.chart }} shell: bash + + - name: Helm install again, 3rd time is the charm + id: helm-install-3 + if: steps.helm-install-2.outcome == 'failure' + run: | + helm delete ${{ inputs.name }} --debug --namespace ${{ steps.set-namespace.outputs.namespace }} --wait || true + sleep 5 + kubectl get pods --namespace ${{ steps.set-namespace.outputs.namespace }} + starship start \ + --helmName ${{ inputs.name }} \ + --helmVersion ${{ inputs.version }} \ + --helmFile ${{ inputs.config }} \ + --helmNamespace ${{ steps.set-namespace.outputs.namespace }} \ + --helmChart ${{ inputs.chart }} + shell: bash