File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,10 +73,16 @@ jobs:
7373 - name : Create comment body
7474 if : github.event_name == 'pull_request_target'
7575 run : |
76- echo "### Terraform Plan for User Roles Changes" > comment_body.txt
77- echo '```' >> comment_body.txt
78- cat ./infra/iam/tfplan.txt >> comment_body.txt
79- echo '```' >> comment_body.txt
76+ PLAN_SIZE=$(wc -c < ./infra/iam/tfplan.txt)
77+ if [ "$PLAN_SIZE" -gt 60000 ]; then
78+ echo "### Terraform Plan for User Roles Changes" > comment_body.txt
79+ echo "Plan is too big, review in Github Action Logs" >> comment_body.txt
80+ else
81+ echo "### Terraform Plan for User Roles Changes" > comment_body.txt
82+ echo '```' >> comment_body.txt
83+ cat ./infra/iam/tfplan.txt >> comment_body.txt
84+ echo '```' >> comment_body.txt
85+ fi
8086
8187 - name : Upload plan as a comment to PR
8288 if : github.event_name == 'pull_request_target'
Original file line number Diff line number Diff line change 367367- username : enriquecaol04
368368 email : enriquecaol04@gmail.com
369369 permissions :
370- - role : projects/apache-beam-testing/ roles/beam_viewer
370+ - role : roles/viewer
371371- username : eventarc-workflow-sa
372372 email : eventarc-workflow-sa@apache-beam-testing.iam.gserviceaccount.com
373373 permissions :
You can’t perform that action at this time.
0 commit comments