Make unable to read update log a hard error (#1050)
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -40,8 +40,8 @@ jobs:
|
|||||||
os.execute('echo "version-code=' .. tostring(version.code) .. '" >> $GITHUB_OUTPUT')
|
os.execute('echo "version-code=' .. tostring(version.code) .. '" >> $GITHUB_OUTPUT')
|
||||||
|
|
||||||
local f = io.open("updateLog.txt", 'r')
|
local f = io.open("updateLog.txt", 'r')
|
||||||
local note = f and f:read("*a") or ""
|
local note = f:read("*a")
|
||||||
if f then f:close() end
|
f:close()
|
||||||
local p1 = note:find("\n%d") + 1
|
local p1 = note:find("\n%d") + 1
|
||||||
local p2 = note:find("\n", p1) - 1
|
local p2 = note:find("\n", p1) - 1
|
||||||
os.execute('echo "update-title=' .. note:sub(p1, p2) .. '" >> $GITHUB_OUTPUT')
|
os.execute('echo "update-title=' .. note:sub(p1, p2) .. '" >> $GITHUB_OUTPUT')
|
||||||
|
|||||||
Reference in New Issue
Block a user