File tree 2 files changed +24
-3
lines changed
2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,33 @@ jobs:
82
82
# Display the results file
83
83
cat DataChannel_Echo_test_results.md
84
84
85
+ - name : Replace Data Channel Echo Test Results in README
86
+ run : |
87
+ # Read the new content from DataChannel_Echo_test_results.md
88
+ new_content="$(<DataChannel_Echo_test_results.md)"
89
+
90
+ # Use awk to replace content between the markers
91
+ awk -v new_content="$new_content" '
92
+ BEGIN { in_section = 0 }
93
+ /## Data Channel Echo Test Results/ {
94
+ in_section = 1;
95
+ print;
96
+ print new_content;
97
+ next
98
+ }
99
+ /## Get Started/ {
100
+ in_section = 0;
101
+ print;
102
+ next
103
+ }
104
+ !in_section { print }
105
+ ' README.md > README.tmp && mv -f README.tmp README.md
106
+
85
107
- name : Commit the results to the git repository
86
108
if : github.event_name != 'pull_request'
87
109
run : |
88
110
git config user.name github-actions
89
111
git config user.email [email protected]
90
112
git pull
91
- git add DataChannel_Echo_test_results.md
92
- git commit DataChannel_Echo_test_results.md -m "Automated data channel echo test results."
113
+ git commit DataChannel_Echo_test_results.md README.md -m "Automated data channel echo test results."
93
114
git push
Original file line number Diff line number Diff line change 67
67
print ('## Test Results' )
68
68
print ('Test run at %s\n ' % datetime .now ())
69
69
70
- html += "<h3>Test Results</h3>"
71
70
html += "<p>Test run at %s.</p>" % datetime .now ()
72
71
73
72
# Print Table header row.
88
87
html += "<td></td>"
89
88
print ('|' )
90
89
html += "</tr>"
90
+ html += "<br/>"
91
91
92
92
html += """ </body>
93
93
</html>"""
You can’t perform that action at this time.
0 commit comments