From 3cb2cf50eeaafea8a9c08e2e0b604e80d28e8880 Mon Sep 17 00:00:00 2001 From: Amanuel Engeda <74629455+engedaam@users.noreply.github.com> Date: Fri, 26 Apr 2024 09:35:34 -0700 Subject: [PATCH] ci: Always add retention policy to E2E run logs (#6104) --- .github/workflows/e2e.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 636c19c77b9c..476ccf03991c 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -188,7 +188,7 @@ jobs: git_ref: ${{ inputs.git_ref }} workflow_trigger: ${{ inputs.workflow_trigger }} - name: add log retention policy - if: ${{ inputs.workflow_trigger != 'private_cluster' }} + if: (success() || failure()) && inputs.workflow_trigger != 'private_cluster' env: CLUSTER_NAME: ${{ steps.generate-cluster-name.outputs.CLUSTER_NAME }} run: |