You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "$(terraform show -no-color "${plan}" 2>&1)" >> TERRAFORM_PLANS.md
143
-
echo '```' >> TERRAFORM_PLANS.md
143
+
echo '~~~~terraform' >> TERRAFORM_PLANS.md
144
+
terraform show -no-color "${plan}" 2>&1 | sed 's/^~~~~/~~~~ /' >> TERRAFORM_PLANS.md
145
+
echo '~~~~' >> TERRAFORM_PLANS.md
144
146
echo '' >> TERRAFORM_PLANS.md
145
147
echo '</details>' >> TERRAFORM_PLANS.md
146
148
done
147
149
cat TERRAFORM_PLANS.md
148
150
working-directory: terraform
149
151
- name: Prepare comment
150
152
run: |
151
-
echo 'COMMENT<<EOF' >> $GITHUB_ENV
153
+
delimiter="$(uuidgen)"
154
+
echo "COMMENT<<${delimiter}" >> $GITHUB_ENV
152
155
if [[ $(wc -c TERRAFORM_PLANS.md | cut -d' ' -f1) -ge 65000 ]]; then
153
156
echo "Terraform plans are too long to post as a comment. Please inspect [Plan > Comment > Show terraform plans](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}) instead." >> $GITHUB_ENV
Before merge, verify that all the following plans are correct. They will be applied as-is after the merge.
168
+
Before merge, verify that all the following plans are correct. After merge, Apply will regenerate the plans from the merged commit and continue only if they match.
0 commit comments