File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 89
89
done <<< $(cat out.txt)
90
90
echo 'EOF' >> $GITHUB_OUTPUT
91
91
92
+ - name : " [Dev] calculate diff"
93
+ run : |
94
+ # diff exits with status 1 if there is a diff
95
+ diff -u main/out.txt ${{ steps.find-pr-txt.outputs.txtPath }} > dev-diff.txt || echo "Differences exist"
96
+ cat dev-diff.txt
97
+
98
+ - name : " [Dev] store diff in GITHUB_OUTPUT"
99
+ id : dev-diff
100
+ run : |
101
+ echo 'diffText<<EOF' >> $GITHUB_OUTPUT
102
+ while IFS= read -r line; do
103
+ echo "$line" >> $GITHUB_OUTPUT
104
+ done <<< $(cat ./dev-diff.txt)
105
+ echo 'EOF' >> $GITHUB_OUTPUT
106
+
107
+
92
108
93
109
- name : " [Debug] collected data from artifacts"
94
110
run : |
@@ -101,6 +117,10 @@ jobs:
101
117
echo "PR out.txt"
102
118
echo -e "${{ steps.dev.outputs.sizes }}"
103
119
120
+ echo "Dev diff"
121
+ echo -e "${{ steps.dev-diff.outputs.diffText }}"
122
+
123
+
104
124
# ########################
105
125
# Intended Layout:
106
126
#
@@ -117,6 +137,16 @@ jobs:
117
137
with :
118
138
issue : ${{ steps.find-pr-number.outputs.prNumber }}
119
139
message : |
140
+ <details><summary>Development Assets</summary>
141
+
142
+ Diff
143
+
144
+ ```diff
145
+ ${{ steps.dev-diff.outputs.diffText }}
146
+ ```
147
+
148
+ Details
149
+
120
150
<table><thead><tr><th></th><th>This PR</th><th>main</th></tr></thead>
121
151
<tbody>
122
152
<tr><td>Dev</td><td>
@@ -133,6 +163,7 @@ jobs:
133
163
134
164
</td></tr>
135
165
</tbody></table>
166
+ </details>
136
167
137
168
138
169
You can’t perform that action at this time.
0 commit comments