diff --git a/action.yml b/action.yml index 33bbcd2..71d672b 100644 --- a/action.yml +++ b/action.yml @@ -331,17 +331,15 @@ runs: TERRAFORM_RESULT=$? set -e - - ${{ steps.command.outputs.value }} output --json > output_values.json - + + cat "${TERRAFORM_OUTPUT_FILE}" + atmos terraform output ${{ inputs.component }} --stack ${{ inputs.stack }} --skip-init -- -json 1> output_values.json terraform-docs -c ${{ github.action_path }}/config/tfdocs-config.yaml --output-file ${{ github.workspace }}/atmos-apply-summary.md ./ sed -i "s#\`\`#![Sensitive](https://img.shields.io/badge/sensitive-c40000?style=for-the-badge)#g" ${{ github.workspace }}/atmos-apply-summary.md sed -i "s#\`\"#\`#g" ${{ github.workspace }}/atmos-apply-summary.md sed -i "s#\"\`#\`#g" ${{ github.workspace }}/atmos-apply-summary.md sed -i "s#|--#|:-#g" ${{ github.workspace }}/atmos-apply-summary.md - - cat "${TERRAFORM_OUTPUT_FILE}" cat "${{ github.workspace }}/atmos-apply-summary.md" >> $GITHUB_STEP_SUMMARY