Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha authored Nov 28, 2024
1 parent 1d74ddd commit 8228d63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ runs:
- name: Configure Plan AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
if: ${{ fromJson(steps.atmos-settings.outputs.settings).plan-repository-type == 's3'
if: ${{ fromJson(steps.atmos-settings.outputs.settings).plan-repository-type == 's3' &&
fromJson(steps.atmos-settings.outputs.settings).aws-region != '' &&
fromJson(steps.atmos-settings.outputs.settings).aws-region != 'null' &&
fromJson(steps.atmos-settings.outputs.settings).terraform-plan-role != '' &&
Expand Down Expand Up @@ -353,7 +353,7 @@ runs:
- name: Configure State AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
if: ${{ fromJson(steps.atmos-settings.outputs.settings).plan-repository-type == 's3'
if: ${{ fromJson(steps.atmos-settings.outputs.settings).plan-repository-type == 's3' &&
steps.atmos-plan.outputs.error == 'false' &&
fromJson(steps.atmos-settings.outputs.settings).aws-region != '' &&
fromJson(steps.atmos-settings.outputs.settings).aws-region != 'null' &&
Expand Down Expand Up @@ -520,4 +520,4 @@ runs:
if: ${{ fromJson(steps.atmos-settings.outputs.settings).enabled }}
shell: bash
run: |
exit ${{ steps.atmos-plan.outputs.result }}
exit ${{ steps.atmos-plan.outputs.result }}

0 comments on commit 8228d63

Please sign in to comment.