Skip to content

Commit

Permalink
Fixed timeline export, fixed release builder line endings for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
xpdota committed Mar 13, 2023
1 parent c426b87 commit c6ebe0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/post_new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
permissions:
contents: write
steps:
- name: Set git to use LF instead of CRLF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
with:
ref: stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ default TimelineEntry untranslated() {
@JsonIgnore
default String toTextFormat() {
StringBuilder sb = new StringBuilder();
if (!enabled()) {
// If disabled, just comment out the line
sb.append("# ");
}
sb.append(fmtDouble(time())).append(' ');
String name = name();
if (name == null || name.isEmpty()) {
Expand Down Expand Up @@ -150,7 +154,7 @@ default String toTextFormat() {

@JsonIgnore
default Stream<String> makeTriggerTimelineEntries() {
if (!callout()) {
if (!enabled() || !callout()) {
return Stream.empty();
}
String uniqueName = makeUniqueName();
Expand Down

0 comments on commit c6ebe0d

Please sign in to comment.