release note符合markdown语法,方便阅读
This commit is contained in:
8
.github/workflows/getVersion.lua
vendored
8
.github/workflows/getVersion.lua
vendored
@@ -18,11 +18,7 @@ elseif arg[1]=="-updateNote"then
|
||||
local p1=note:find("\n",note:find("\n%d")+1)+1
|
||||
local p2=note:find("\n%d",p1+1)
|
||||
note=note:sub(p1,p2-2)
|
||||
note=note
|
||||
:gsub(" ","_")
|
||||
:gsub(" ","")
|
||||
:gsub("\n([^_])","\n\n%1")
|
||||
:gsub("\n_","\n")
|
||||
:gsub("\n\n","\n",1)
|
||||
:gsub(" ","- ")
|
||||
:gsub(" ","# ")
|
||||
print(note)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user