Skip to content

Commit 5839bb2

Browse files
committed
Add markflow format in the comment
Signed-off-by: Dinesh B <dineshba@microsoft.com>
1 parent 83b2a97 commit 5839bb2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/demo.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ jobs:
4343
working-directory: ./example
4444

4545
- name: summary in table format
46-
run: |
47-
rm -rf tf-summarize-table-output.md
48-
echo "## tf-summarize output:" > tf-summarize-table-output.md
49-
echo "" >> tf-summarize-table-output.md
50-
terraform show -json tfplan | tf-summarize >> tf-summarize-table-output.md
46+
run: terraform show -json tfplan | tf-summarize
5147
working-directory: ./example
5248

5349
- name: summary in tree format
@@ -62,6 +58,14 @@ jobs:
6258
run: terraform show -json tfplan | tf-summarize -tree -draw
6359
working-directory: ./example
6460

61+
- name: summary in draw table format
62+
run: |
63+
rm -rf tf-summarize-table-output.md
64+
echo "## tf-summarize output:" > tf-summarize-table-output.md
65+
echo "" >> tf-summarize-table-output.md
66+
terraform show -json tfplan | tf-summarize -md >> tf-summarize-table-output.md
67+
working-directory: ./example
68+
6569
- name: Create comment with terraform plan summary
6670
uses: peter-evans/create-or-update-comment@v2
6771
with:

0 commit comments

Comments
 (0)