diff --git a/README.md b/README.md index a2f3223..160328f 100644 --- a/README.md +++ b/README.md @@ -113,15 +113,25 @@ steps: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | + const validate = ${{ toJson(steps.validate.outputs.stdout) }}; + const plan = ${{ toJson(steps.plan.outputs.stdout) }}; + const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\` #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\` - #### Terraform Validation 🤖${{ steps.validate.outputs.stdout }} + #### Terraform Validation 🤖\`${{ steps.validate.outcome }}\` + +
Show Validation + + \`\`\`${validate}\`\`\` + +
+ #### Terraform Plan 📖\`${{ steps.plan.outcome }}\` - +
Show Plan - - \`\`\`${process.env.PLAN}\`\`\` - + + \`\`\`terraform\n${plan}\`\`\` +
*Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`;