From 14f821e0be0f9c741b6e9a637ecdb77dc1c67308 Mon Sep 17 00:00:00 2001 From: Mitali Salvi Date: Mon, 2 Dec 2024 15:11:14 -0500 Subject: [PATCH] rev2 --- .github/workflows/eks-add-on-integ-test.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/eks-add-on-integ-test.yml b/.github/workflows/eks-add-on-integ-test.yml index 1a3bcef20..0d45b4eb5 100644 --- a/.github/workflows/eks-add-on-integ-test.yml +++ b/.github/workflows/eks-add-on-integ-test.yml @@ -107,7 +107,12 @@ jobs: command: | addon_name="${{ github.event.inputs.addon_name || 'amazon-cloudwatch-observability' }}" addon_version="${{ github.event.inputs.addon_version || 'latest' }}" - run_in_beta="${{ github.event.inputs.run_in_beta == true || github.event.inputs.run_in_beta == 'true' || false }}" + run_in_beta="${{ github.event.inputs.run_in_beta || false }}" + if [ "$run_in_beta" == "true" ]; then + run_in_beta=1 + else + run_in_beta=0 + fi # If the addon_version is 'latest', get the most recent version of the add-on from AWS if [ "$addon_version" == "latest" ]; then @@ -132,7 +137,12 @@ jobs: timeout_minutes: 8 retry_wait_seconds: 5 command: | - run_in_beta="${{ github.event.inputs.run_in_beta == true || github.event.inputs.run_in_beta == 'true' || false }}" + run_in_beta="${{ github.event.inputs.run_in_beta || false }}" + if [ "$run_in_beta" == "true" ]; then + run_in_beta=1 # true + else + run_in_beta=0 # false + fi cd integration-tests/terraform/eks terraform destroy -var="beta=${{ run_in_beta }}" --auto-approve