Update README.md

replaced the existing example
This commit is contained in:
Kabir Bolatito 2020-05-21 10:12:49 -04:00 committed by GitHub
parent 7810ad5077
commit 72297fe9b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,34 +80,6 @@ steps:
Outputs can be used in subsequent steps to comment on the pull request:
```yaml
steps:
- uses: hashicorp/setup-terraform@v1
- run: terraform init
- id: plan
run: terraform plan -no-color
- uses: actions/github-script@0.9.0
if: github.event_name == 'pull_request'
env:
STDOUT: "```terraform\n${{ steps.plan.outputs.stdout }}```"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const output = `<details><summary>tf plan:</summary>\n\n${process.env.STDOUT}\n\n</details>`;
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
```
Outputs can be used in subsequent steps to comment on the pull request
```yaml
defaults:
run: