Skip to content

Commit

Permalink
Merge pull request #66 from gsmet/announce-in-work
Browse files Browse the repository at this point in the history
Announce file has been moved to work/ directory
  • Loading branch information
gsmet authored Jan 27, 2024
2 parents e5f76fd + a05366f commit 4594bb7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ public int run(Context context, Commands commands, GitHub quarkusBotGitHub, Rele
comment.append("* Send the announcement to [[email protected]](mailto:[email protected])\n");
comment.append("* Send the announcement to various social networks using https://buffer.com/\n");

Path announcePath = Path.of("announce-" + releaseInformation.getVersion() + ".txt");
Path announcePath = Path.of("work", "announce-" + releaseInformation.getVersion() + ".txt");
try {
String announceText = Files.readString(announcePath);

comment.append("\n\nHere is some content that could help in writing the announcement:\n\n");
comment.append(announceText);
} catch (Exception e) {
commands.warning("An error occurred while reading " + announcePath + ": " + e.getMessage() + ". Ignoring.");
LOG.warn("An error occurred while reading " + announcePath + ". Ignoring.", e);
}

Expand Down

0 comments on commit 4594bb7

Please sign in to comment.