Skip to content

Commit efcb3c2

Browse files
committed
chore: use +
1 parent feb1ecb commit efcb3c2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/comment-diffs.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
library_type=$1
156156
language=$2
157157
158-
output_file="$output_path/$library_type-$language.txt"
158+
output_file="$output_path/$library_type+$language.txt"
159159
160160
path_prefix="../test/$library_type/$language"
161161
target_path_new_version="$path_prefix/new-version"
@@ -208,12 +208,10 @@ jobs:
208208
209209
# Add output to file
210210
# echo "[$library_type/$language](https://github.com/${{github.repository}}/compare/$old_version_commit_hash..$new_version_commit_hash)" >> "$output_file"
211-
212-
# Add changes to output file
213-
echo $(git diff HEAD~)
214-
215211
git diff HEAD~ >> $output_file
216212
echo "$output_file"
213+
214+
cat "$output_file"
217215
fi
218216
}
219217
@@ -288,7 +286,7 @@ jobs:
288286
}
289287
290288
const parsedArtifacts = fs.readdirSync('./outputs').map(fileName => {
291-
const [type, language] = fileName.split("-");
289+
const [type, language] = fileName.split("+");
292290
293291
const header = Object.entries(replaceTable).reduce((acc, [key, value]) => {
294292
return acc.replace(new RegExp(key, "g"), value);

0 commit comments

Comments
 (0)