Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Aug 30, 2024
1 parent 520351e commit d04d9b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ public void write(Chunk<? extends CounterItem> chunk) throws Exception {
.map(entry -> "%s,%s,%d".formatted(entry.getKey(), titleMap.getOrDefault(entry.getKey(), "N/A"),
entry.getValue().size()))
.collect(Collectors.joining("\r\n"));
Committer committer = new Committer("making[bot]", "making[bot]@users.noreply.github.com");
Committer committer = new Committer("github-actions[bot]", "github-actions[bot]@users.noreply.github.com");
this.createOrUpdateContent("countersByDateTime.csv", countersByDateTimeCsv, fromTo, committer);
this.createOrUpdateContent("countersByEntryId.csv", countersByEntryIdCsv, fromTo, committer);
}

void createOrUpdateContent(String fileName, String content, Map<String, String> fromTo, Committer committer) {
CreateContentRequestBuilders.Optionals ccrBuilder = CreateContentRequestBuilder.createContentRequest()
.message("Create %s (%s_%s)".formatted(fileName, fromTo.get("from"), fromTo.get("to")))
.message("Update %s (%s_%s)".formatted(fileName, fromTo.get("from"), fromTo.get("to")))
.content(Base64.getEncoder().encodeToString(content.getBytes(StandardCharsets.UTF_8)))
.committer(committer);
try {
Expand Down

0 comments on commit d04d9b0

Please sign in to comment.