If you have many domains, the comment posted to the PR is very long. I've found it better if the GHA log shows all the output, but what gets posted as a comment is filtered heavily.
We use this script immediately after the echo "$OUTPUT" line.
It probably doesn't need to be a separate script, but it is easier to debug that way. It also permits me to use the script on the command line when I'm making changes outside of GHA.
If you have many domains, the comment posted to the PR is very long. I've found it better if the GHA log shows all the output, but what gets posted as a comment is filtered heavily.
We use this script immediately after the
echo "$OUTPUT"
line.(this is from memory)
Here's the filter-preview.sh script: