From e6e154b683fe043cfa0e306de1b48bef67e32b89 Mon Sep 17 00:00:00 2001 From: Super Zheng Date: Fri, 9 Dec 2022 16:26:16 +0800 Subject: [PATCH] fix(workflows): fix triage outputs incorrect problem in crash report --- .github/workflows/gh_issue_crash_report.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh_issue_crash_report.yml b/.github/workflows/gh_issue_crash_report.yml index 0af6a23af..90ae9e2c8 100644 --- a/.github/workflows/gh_issue_crash_report.yml +++ b/.github/workflows/gh_issue_crash_report.yml @@ -115,8 +115,9 @@ jobs: if (['Version', 'Platform', 'Architecture'].includes(key)) { value = value.replaceAll(/[^0-9a-z\-_\.]/ig, ''); } - value = value.replaceAll('%', '%25').replaceAll('\n', '%0A').replaceAll('\r', '%0D'); - fs.appendFileSync(process.env.GITHUB_OUTPUT, `${key.toLowerCase()}=${value}${os.EOL}`, { encoding: 'utf8' }); + fs.appendFileSync(process.env.GITHUB_OUTPUT, `${key.toLowerCase()}<