Skip to content

Commit 1a144b9

Browse files
committed
Added support for code font in release notes
1 parent 80bfa74 commit 1a144b9

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

‎.github/workflows/termprem-ci.yml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,16 @@ jobs:
7676
allVersionLines = find( startsWith( logLines, "##" ) );
7777
endIdx = allVersionLines(find( allVersionLines > startIdx, 1 )) - 1;
7878
releaseNotes = join( logLines(startIdx:endIdx), newline() );
79+
tempFile = "ReleaseNotes.txt";
80+
writelines( releaseNotes, tempFile )
81+
delimiter = "EOF_" + matlab.lang.internal.uuid();
7982
systemCommand = sprintf( [ ...
80-
'echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV && ', ...
81-
'echo "%s" >> $GITHUB_ENV && ', ...
82-
'echo "EOF" >> $GITHUB_ENV'], releaseNotes );
83+
'echo "RELEASE_NOTES<<%s" >> $GITHUB_ENV && ', ...
84+
'cat "%s" >> $GITHUB_ENV && ', ...
85+
'echo "%s" >> $GITHUB_ENV' ], ...
86+
delimiter, tempFile, delimiter );
8387
system( systemCommand );
88+
delete( tempFile )
8489
buildtool package -skip test -skip check
8590
8691
- name: Release toolbox

‎tbx/termprem/Changelog.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release notes
22

3+
## Version 1.0.2
4+
5+
* Added support for `code font` in release notes
6+
37
## Version 1.0.1
48

59
* Updated to plain-text Live Script

‎tbx/termprem/Contents.m‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% Term Premium Modelling
2-
% Version 1.0.1 (R2026a) 03-Jun-2026
2+
% Version 1.0.2 (R2026a) 16-Jun-2026
33
%
44
% * TermPremiumModelling: Main example script
55
% * fitACM: Fits the ACM term-premium model using linear regressions

0 commit comments

Comments
 (0)