@@ -108,3 +108,38 @@ jobs:
108108 echo "Checking: $file"
109109 CI-assets/check_certificates.sh -f "$file"
110110 done < <(printf "%s\n" "${{ needs.detect_changes.outputs.files }}")
111+
112+ - name : Add summary table
113+ run : |
114+ {
115+ echo "### Certificate & XML Validation Summary"
116+ echo ""
117+ echo "| File | Result |"
118+ echo "|------|--------|"
119+ while IFS= read -r file; do
120+ [[ -z "$file" ]] && continue
121+ echo "| $file | Checked |"
122+ done < <(printf "%s\n" "${{ needs.detect_changes.outputs.files }}")
123+ } >> $GITHUB_STEP_SUMMARY
124+
125+ - name : Add comment to PR
126+ if : github.event_name == 'pull_request'
127+ uses : actions/github-script@v7
128+ with :
129+ script : |
130+ const files = `\n${{ needs.detect_changes.outputs.files }}`.trim().split("\n");
131+ let table = "### Certificate & XML Validation Summary\n\n";
132+ table += "| File | Result |\n";
133+ table += "|------|--------|\n";
134+ for (const f of files) {
135+ if (f.trim() === "") continue;
136+ table += `| ${f} | Checked |\n`;
137+ }
138+
139+ await github.rest.issues.createComment({
140+ owner: context.repo.owner,
141+ repo: context.repo.repo,
142+ issue_number: context.issue.number,
143+ body: table
144+ });
145+
0 commit comments