This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new 14598412b0 Update rat workflow to only append html that is inside the 
body of the report
14598412b0 is described below

commit 14598412b06fe6c51738132f18cb6da1d3a913d5
Author: James Daugherty <[email protected]>
AuthorDate: Wed Apr 23 13:41:45 2025 -0400

    Update rat workflow to only append html that is inside the body of the 
report
---
 .github/workflows/rat.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/rat.yml b/.github/workflows/rat.yml
index 6bec9bd599..8ea77ce573 100644
--- a/.github/workflows/rat.yml
+++ b/.github/workflows/rat.yml
@@ -56,4 +56,4 @@ jobs:
         run: |
           echo "## 📋 Apache RAT Report" >> $GITHUB_STEP_SUMMARY
           # inject raw HTML (it will render as HTML in the summary)
-          sed '/<h3>Archives:<\/h3>/,/<\/body>/d' build/reports/rat/index.html 
>> $GITHUB_STEP_SUMMARY
\ No newline at end of file
+          sed -n '/<body[^>]*>/,/<\/body>/ { 
/<h3>Archives:<\/h3>/,/<\/body>/d; /<body[^>]*>/d; /<\/body>/d; p; }' 
build/reports/rat/index.html >> $GITHUB_STEP_SUMMARY
\ No newline at end of file

Reply via email to