Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ Which would produce the same behavior as in `v1`, doing this:







<!-- markdownlint-disable -->

## Inputs
Expand Down
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,13 @@ runs:
rm -f ${TERRAFORM_OUTPUT_FILE}
# Convert planfile to JSON if Infracost is enabled
# Infracost requires a JSON representation of the plan to analyze cost changes
if [[ "${{ fromJson(steps.atmos-settings.outputs.settings).enable-infracost }}" == "true" && "${TERRAFORM_RESULT}" == "0" ]]; then
cd "${{ steps.vars.outputs.component_path }}"
${{ fromJson(steps.atmos-settings.outputs.settings).command }} show -json "${{ steps.vars.outputs.plan_file }}" > "${{ steps.vars.outputs.plan_file }}.json"
fi
- name: Configure State AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
if: ${{ ( fromJson(steps.atmos-settings.outputs.settings).plan-repository-type == 's3' ||
Expand Down Expand Up @@ -467,13 +474,6 @@ runs:
with:
api-key: ${{ inputs.infracost-api-key }}

- name: Convert PLANFILE to JSON
if: ${{ steps.atmos-plan.outputs.changes == 'true' }}
shell: bash
working-directory: ./${{ steps.vars.outputs.component_path }}
run: |
${{ fromJson(steps.atmos-settings.outputs.settings).command }} show -json "${{ steps.vars.outputs.plan_file }}" > "${{ steps.vars.outputs.plan_file }}.json"
- name: Set Plan Results
id: results
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion docs/github-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| Name | Description | Default | Required |
|------|-------------|---------|----------|
| atmos-config-path | The path to the atmos.yaml file | N/A | true |
| atmos-version | The version of atmos to install | >= 1.99.0 | false |
| atmos-version | The version of atmos to install | >= 1.158.0 | false |
| branding-logo-image | Branding logo image url | https://cloudposse.com/logo-300x69.svg | false |
| branding-logo-url | Branding logo url | https://cloudposse.com/ | false |
| component | The name of the component to plan. | N/A | true |
Expand Down
Loading