File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -178,16 +178,27 @@ jobs:
178
178
echo "No diff"
179
179
else
180
180
# Push the branches
181
- git push --set-upstream origin diffs
181
+ # git push --set-upstream origin diffs
182
182
183
183
# Get new version remote commit hash
184
- new_version_commit_hash=$(git rev-parse --short origin/diffs)
184
+ # new_version_commit_hash=$(git rev-parse --short origin/diffs)
185
185
186
186
# Get old version remote commit hash
187
- old_version_commit_hash=$(git rev-parse --short origin/diffs~)
187
+ # old_version_commit_hash=$(git rev-parse --short origin/diffs~)
188
188
189
189
# Add output to file
190
- echo "[$library_type/$language](https://github.com/${{github.repository}}/compare/$old_version_commit_hash..$new_version_commit_hash)" >> "$output_file"
190
+ # echo "[$library_type/$language](https://github.com/${{github.repository}}/compare/$old_version_commit_hash..$new_version_commit_hash)" >> "$output_file"
191
+
192
+
193
+ # Add type to output file
194
+ message="""<details>
195
+ <summary>${library_type}/${language}</summary>"""
196
+ echo """${message}""" >> $output_file
197
+
198
+ # Add changes to output file
199
+ git diff HEAD~ >> $output_file
200
+
201
+ echo "</details>" >> $output_file
191
202
192
203
# Add empty line
193
204
echo \ >> $output_file
@@ -203,6 +214,7 @@ jobs:
203
214
done
204
215
205
216
if [ -s "$output_file" ]; then
217
+ cat $output_file
206
218
echo "DIFF_IS_NON_EMPTY=1" >> $GITHUB_OUTPUT
207
219
else
208
220
echo "DIFF_IS_NON_EMPTY=0" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments