- Try fix multiline issue
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -45,12 +45,12 @@ jobs:
|
||||
os.execute('echo "update-title=' .. note:sub(p1, p2) .. '" >> $GITHUB_OUTPUT')
|
||||
local p3 = note:find("\n", note:find("\n%d") + 1) + 1
|
||||
local p4 = note:find("\n%d", p3 + 1)
|
||||
os.execute('echo "update-note=' .. note:sub(p3, p4 - 2)
|
||||
updateNote = note:sub(p3, p4 - 2)
|
||||
:gsub(" ", "- ")
|
||||
:gsub(" ", "# ")
|
||||
:gsub('%%', '%25')
|
||||
:gsub('\n', '%0A')
|
||||
:gsub('\r', '%0D') .. '" >> $GITHUB_OUTPUT')
|
||||
os.execute('echo "update-note<<EOF" >> $GITHUB_OUTPUT')
|
||||
os.execute('echo "' .. updateNote .. '" >> $GITHUB_OUTPUT')
|
||||
os.execute('echo "EOF" >> $GITHUB_OUTPUT')
|
||||
- name: Get git info
|
||||
id: git-info
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user