From 6f9caa73be7445f3e614a73b88e5553aba54003e Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Tue, 17 Sep 2024 22:09:40 +0300 Subject: [PATCH] Aws auth optional (#51) --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index b4d12ef..c89987a 100644 --- a/action.yml +++ b/action.yml @@ -150,6 +150,10 @@ runs: working-directory: base-ref - name: Configure Plan AWS Credentials + if: ${{ steps.config.outputs.aws-region != '' && + steps.config.outputs.aws-region != 'null' && + steps.config.outputs.terraform-plan-role != '' && + steps.config.outputs.terraform-plan-role != 'null' }} uses: aws-actions/configure-aws-credentials@v4.0.2 with: aws-region: ${{ steps.config.outputs.aws-region }}