File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -73,24 +73,26 @@ jobs:
73
73
id : prepare-summary
74
74
run : |
75
75
$(poetry env activate)
76
+ python devel/summarize_site_validation.py validation_results.xml
76
77
summary=$(
77
- python devel/summarize_site_validation.py validation_results.xml > summary.md || echo "Failed to generate summary of test results"
78
+ python devel/summarize_site_validation.py validation_results.xml || echo "Failed to generate summary of test results"
78
79
)
79
80
deactivate
80
- echo "summary<<EOF" >> $GITHUB_OUTPUT
81
- echo "$summary" >> $GITHUB_OUTPUT
82
- echo "EOF" >> $GITHUB_OUTPUT
81
+ echo "$summary" > validation_summary.md
82
+ cat validation_summary.md
83
83
84
84
- name : Announce validation results
85
85
if : steps.discover-modified.outputs.changed_targets != ''
86
86
uses : actions/github-script@v8
87
87
with :
88
88
script : |
89
+ const fs = require('fs');
90
+ const body = fs.readFileSync('validation_summary.md', 'utf8');
89
91
github.rest.issues.createComment({
90
92
issue_number: context.payload.pull_request.number,
91
93
owner: context.repo.owner,
92
94
repo: context.repo.repo,
93
- body: `${{ steps.prepare-summary.outputs.summary }}`
95
+ body: body,
94
96
});
95
97
96
98
- name : This step shows as ran when no modifications are found
You can’t perform that action at this time.
0 commit comments