-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from gsmet/announce-in-work
Announce file has been moved to work/ directory
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
} | ||
|
||
|