From 8cbefd38b9f4c30503131b9179db07772bb0c0d9 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Thu, 19 Sep 2024 14:14:57 +0200 Subject: [PATCH] Skip AWS auth if Gitops aws configuration empty in atmos settings --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index bd2a559..724c12a 100644 --- a/action.yml +++ b/action.yml @@ -307,7 +307,8 @@ runs: cosmosEndpoint: ${{ steps.config.outputs.cosmos-endpoint }} - name: Configure AWS Credentials - if: ${{ steps.config.outputs.aws-region != '' && + if: ${{ env.ACTIONS_ENABLED == 'true' && + steps.config.outputs.aws-region != '' && steps.config.outputs.aws-region != 'null' && steps.config.outputs.terraform-apply-role != '' && steps.config.outputs.terraform-apply-role != 'null' }}