From a2931ea290bfb9d62f35e9d6f4546829926a6065 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Tue, 14 Nov 2023 21:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0workflow=E4=B8=AD=E6=B6=89?= =?UTF-8?q?=E5=8F=8A=E8=AF=BB=E5=8F=96updateLog=E7=9A=84=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6ffaeab3..ade750cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,9 @@ jobs: os.execute('echo "version-string=' .. version.string:gsub("%a", "") .. '" >> $GITHUB_OUTPUT') os.execute('echo "version-code=' .. tostring(version.code) .. '" >> $GITHUB_OUTPUT') - local note = require 'parts.updateLog' + local f = io.open("updateLog.txt", 'r') + local note = f and f:read("*a") or "" + if f then f:close() end local p1 = note:find("\n%d") + 1 local p2 = note:find("\n", p1) - 1 os.execute('echo "update-title=' .. note:sub(p1, p2) .. '" >> $GITHUB_OUTPUT')